From: onefang Date: Mon, 14 Nov 2011 04:47:44 +0000 (+0000) Subject: Extra parenthethith, coth Mike'th compiler hath a lithp. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~577 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e30cd8d413dc434a26fe24e9296c0505b752d28;p=profile%2Fivi%2Fedje.git Extra parenthethith, coth Mike'th compiler hath a lithp. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@65143 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_lua2.c b/src/lib/edje_lua2.c index 67aee06..d9319eb 100644 --- a/src/lib/edje_lua2.c +++ b/src/lib/edje_lua2.c @@ -2174,7 +2174,7 @@ _elua_map_lighting(lua_State *L) if (!_elua_isa(obj, _elua_evas_map_meta)) return 0; - if (n = (_elua_scan_params(L, 2, EINA_FALSE, "%x %y %z", &x, &y, &z)) > 0) + if ((n = _elua_scan_params(L, 2, EINA_FALSE, "%x %y %z", &x, &y, &z)) > 0) if (n += _elua_scan_params(L, 2 + n, EINA_FALSE, "%r %g %b", &r, &g, &b) > 0) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%r %g %b", &r1, &g1, &b1) > 0) { @@ -2238,7 +2238,7 @@ _elua_map_populate(lua_State *L) { Evas_Coord x, y, w, h; - if (n = _elua_scan_params(L, 2, EINA_FALSE, "%x %y %w %h", &x, &y, &w, &h) > 0) + if ((n = _elua_scan_params(L, 2, EINA_FALSE, "%x %y %w %h", &x, &y, &w, &h)) > 0) { evas_map_util_points_populate_from_geometry(elm->map, x, y, w, h, lua_tointeger(L, 2 + n)); } @@ -2280,7 +2280,7 @@ _elua_map_rotate3d(lua_State *L) if (!_elua_isa(obj, _elua_evas_map_meta)) return 0; - if (n = (_elua_scan_params(L, 2, EINA_FALSE, "#x #y #z", &zx, &zy, &zz)) > 0) + if ((n = _elua_scan_params(L, 2, EINA_FALSE, "#x #y #z", &zx, &zy, &zz)) > 0) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%x %y %z", &x, &y, &z) > 0) { evas_map_util_3d_rotate(elm->map, zx, zy, zz, x, y, z); @@ -2339,7 +2339,7 @@ _elua_map_zoom(lua_State *L) if (!_elua_isa(obj, _elua_evas_map_meta)) return 0; - if (n = (_elua_scan_params(L, 2, EINA_FALSE, "#x #y", &zx, &zy)) > 0) + if ((n = _elua_scan_params(L, 2, EINA_FALSE, "#x #y", &zx, &zy)) > 0) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%x %y", &x, &y) > 0) { evas_map_util_zoom(elm->map, zx, zy, x, y); @@ -2470,7 +2470,7 @@ _elua_text_text(lua_State *L) { const char *str; - if (str = lua_tostring(L, 2)) + if ((str = lua_tostring(L, 2))) // Extra parenthesis, coz Mikes compiler has a lisp. evas_object_text_text_set(elo->evas_obj, str); } }