summaryrefslogtreecommitdiffhomepage
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-09 13:57:34 -0500
committermidipix <writeonce@midipix.org>2016-01-09 13:57:34 -0500
commitd46ef90eaf604ebafb5bc6958f7d013e8e122ab0 (patch)
tree22f0707bcca95eab537ef798c1ccb86b2aaf90fd /src/output
parenta775966393b6b4b5e353bac84d6605a1ae4d7495 (diff)
downloadapimagic-d46ef90eaf604ebafb5bc6958f7d013e8e122ab0.tar.bz2
apimagic-d46ef90eaf604ebafb5bc6958f7d013e8e122ab0.tar.xz
output_enum(): cast to unsigned when using %x to print an enum value.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/amgc_output_enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/amgc_output_enum.c b/src/output/amgc_output_enum.c
index 3c8288b..99d6bfb 100644
--- a/src/output/amgc_output_enum.c
+++ b/src/output/amgc_output_enum.c
@@ -67,7 +67,7 @@ static int output_enum(
else if ((enumval->enumval >= 0) && (enumval->enumval < 2048))
fprintf(fout,"= %d",enumval->enumval);
else
- fprintf(fout,"= 0x%08x",enumval->enumval);
+ fprintf(fout,"= 0x%08x",(unsigned)enumval->enumval);
if (fputs(",\n",fout) < 0)
return -1;