xoreaxeaxeax / movfuscator

The single instruction C compiler
Other
9.53k stars 398 forks source link

Integer multiplication error #14

Closed erpalma closed 7 years ago

erpalma commented 7 years ago

Hello, I'm getting a multiplication error when trying to compile this code:

#include <stdio.h>

void main() {
    int a = 1501;
    int b = 6754;
    int calc = a * b;

    printf("calculated value: %d\n", calc);
}

Expected 10137754, calculated 10072218.

xoreaxeaxeax commented 7 years ago

Fixed.