summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-10-20 16:27:10 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-10-20 16:27:10 +0200
commit1d380a6d81081557ffbb1621751578042752a619 (patch)
tree2be5f9ad2f29b00d93e0cda3705959d0f10ff0ad
parent397d94c65c6ae3b0f99066b68e9f96e14e5e343f (diff)
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.c2
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];
707static char * 707static char *
708_score_get(int sc) 708_score_get(int sc)
709{ 709{
710 if (sc >= 0 || sc <= 10) 710 if (sc >= 0 && sc <= 10)
711 { 711 {
712 eina_convert_itoa(sc, score_buffer); 712 eina_convert_itoa(sc, score_buffer);
713 return score_buffer; 713 return score_buffer;