diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2015-10-20 16:27:10 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2015-10-20 16:27:10 +0200 |
commit | 1d380a6d81081557ffbb1621751578042752a619 (patch) | |
tree | 2be5f9ad2f29b00d93e0cda3705959d0f10ff0ad | |
parent | 397d94c65c6ae3b0f99066b68e9f96e14e5e343f (diff) | |
download | elementary-1d380a6d81081557ffbb1621751578042752a619.tar.gz |
examples/sphere_hunter: use coorect logic for if condition.
We want a value here which is between 0 and 10. We need a logical AND here. If
we use OR this condition could never be false.
CID: 1327357
-rw-r--r-- | src/examples/sphere_hunter/evas_3d_sphere_hunter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c index 4fef49bd9..895d4f1de 100644 --- a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c +++ b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c @@ -707,7 +707,7 @@ char score_buffer[32]; static char * _score_get(int sc) { - if (sc >= 0 || sc <= 10) + if (sc >= 0 && sc <= 10) { eina_convert_itoa(sc, score_buffer); return score_buffer; |