Fix compiler warning on certain architectures.
authorMichael Buesch <mb@bu3sch.de>
Mon, 16 Jun 2008 18:28:01 +0000 (20:28 +0200)
committerMichael Buesch <mb@bu3sch.de>
Mon, 16 Jun 2008 18:28:01 +0000 (20:28 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
assembler/main.c

index 51de8f7a2880717b7639a41cc36c0421ad4f56ee..0d995a4d6ffe0619ecf57e4cc092364d5b11d5ed 100644 (file)
@@ -1130,7 +1130,8 @@ static void emit_code(struct assembler_context *ctx)
 
        if (arg_print_sizes) {
                printf("%s:  text = %u instructions (%u bytes)\n",
-                      fn, insn_count, insn_count * sizeof(uint64_t));
+                      fn, insn_count,
+                      (unsigned int)(insn_count * sizeof(uint64_t)));
        }
 
        fclose(fd);