shithub: scc

Download patch

ref: 3434e20db04edbf858d3e128531b186c8aabcee0
parent: beef986e3e0d7efc6a210bb80a2019efd2cee6ae
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Apr 17 11:51:35 EDT 2014

Add comments about types in modulo

modulo operation only can be performed with integers, but now it
is accepted also floats.

--- a/expr.c
+++ b/expr.c
@@ -522,7 +522,7 @@
 		switch (yytoken) {
 		case '*': op = OMUL; break;
 		case '/': op = ODIV; break;
-		case '%': op = OMOD; break;
+		case '%': op = OMOD; break; /* TODO: check int type */
 		default: return np;
 		}
 		next();