gta component-compute: fix associativeness of '%' operator
authorMartin Lambers <marlam@marlam.de>
Tue, 27 Nov 2018 08:42:45 +0000 (09:42 +0100)
committerMartin Lambers <marlam@marlam.de>
Tue, 27 Nov 2018 08:42:45 +0000 (09:42 +0100)
gtatool/src/component/component-compute.cpp

index 2590fd1..c4fe6dd 100644 (file)
@@ -236,7 +236,7 @@ extern "C" int gtatool_component_compute(int argc, char *argv[])
                 parsers[p].ClearConst();
                 parsers[p].DefineConst("e", e);
                 parsers[p].DefineConst("pi", pi);
-                parsers[p].DefineOprt("%", mod, mu::prMUL_DIV, mu::oaRIGHT, true);
+                parsers[p].DefineOprt("%", mod, mu::prMUL_DIV, mu::oaLEFT, true);
                 parsers[p].DefineFun("deg", deg);
                 parsers[p].DefineFun("rad", rad);
                 parsers[p].DefineFun("atan2", atan2);