codea: formatstring
[uebersetzerbau-ss10.git] / codea / chelper.c
index 2392092d083b8628aa2c8b296a9b35231c22ff67..af9cf4cebf88ba3a82a33ff3f841e9cfd65279e0 100644 (file)
@@ -32,7 +32,7 @@ void move(char *src, char *dst)
 void moveimm(long imm, char *dst)
 {
        char buf[100];
-       sprintf(buf, "$%li", imm);
+       sprintf(buf, "$%d", imm);
        printf("\tmovq %s, %%%s\n", buf, dst);
 }