diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2015-10-20 16:27:10 +0200 |
---|---|---|
committer | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2015-11-12 10:15:03 +0100 |
commit | cc588ff87341b19056a962b19216b0909d2bf99a (patch) | |
tree | 2be5f9ad2f29b00d93e0cda3705959d0f10ff0ad | |
parent | 1a1d10e4d35f488fd07d6c87cd9d8615ccc723cd (diff) | |
download | elementary-cc588ff87341b19056a962b19216b0909d2bf99a.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; |