From 1d380a6d81081557ffbb1621751578042752a619 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 20 Oct 2015 16:27:10 +0200 Subject: [PATCH] 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 --- src/examples/sphere_hunter/evas_3d_sphere_hunter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c index 4fef49b..895d4f1 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; -- 2.7.4