Explorar o código

[Pal] Add %i support to printf

Simon Gaiser %!s(int64=6) %!d(string=hai) anos
pai
achega
946a58f338
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Pal/lib/stdlib/printfmt.c

+ 1 - 0
Pal/lib/stdlib/printfmt.c

@@ -196,6 +196,7 @@ vfprintfmt(int (*_fputch)(void *, int, void *), void * f, void * putdat,
 
 		// (signed) decimal
 		case 'd':
+		case 'i':
 			num = getint(ap, lflag);
 #if !defined(__i386__)
 			if ((long long) num < 0) {