emit/__emit: Set the sign bit properly on non-32-bit cells

This commit is contained in:
Daniel_Cortez 2017-10-26 02:29:27 +07:00
parent 4fc7ef863a
commit 2492d4793b

View File

@ -5893,7 +5893,7 @@ static void emit_param_num(char *name, ucell *p, int size)
p[curp]=-val;
break;
} else if (tok==tRATIONAL) {
p[curp]=val|0x80000000;
p[curp]=val|((cell)1 << (PAWN_CELL_SIZE-1));
break;
} else {
strcpy(ival+1,str);