+2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
+
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
Add missing includes of loader.h.
case '/':
y = npop();
x = npop();
- npush(y ? (x / y) : 0);
+ /* GRUB has no signed divisions. */
+ npush(y ? ((unsigned)x / (unsigned)y) : 0);
break;
case 'm':
y = npop();
x = npop();
- npush(y ? (x % y) : 0);
+ /* GRUB has no signed divisions. */
+ npush(y ? ((unsigned)x % (unsigned)y) : 0);
break;
case 'A':