Fix va_arg warning from GCC
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Sat, 17 Jul 2010 21:19:44 +0000 (17:19 -0400)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Sat, 17 Jul 2010 21:19:44 +0000 (17:19 -0400)
src/bwio.c

index c66ca21..935b895 100644 (file)
@@ -238,7 +238,7 @@ void bwformat(int channel, char *fmt, va_list va) {
             case 0:
                 return;
             case 'c':
-                bwputc(channel, va_arg(va, char));
+                bwputc(channel, va_arg(va, int));
                 break;
             case 's':
                 bwputw(channel, w, 0, va_arg(va, char *));