From d46ef90eaf604ebafb5bc6958f7d013e8e122ab0 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 9 Jan 2016 13:57:34 -0500 Subject: output_enum(): cast to unsigned when using %x to print an enum value. --- src/output/amgc_output_enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3