projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4a89a
)
Implement (u)intmax_t in printf().
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 21 Sep 2004 04:45:34 +0000
(
04:45
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 21 Sep 2004 04:45:34 +0000
(
04:45
+0000)
(How'd I forget that?)
src/lib/stdio.c
patch
|
blob
|
history
diff --git
a/src/lib/stdio.c
b/src/lib/stdio.c
index 034374d7aa9011b836890529523e372a64afebdf..13df2c7703fb47defa6fd3d9d0b9f71605961879 100644
(file)
--- a/
src/lib/stdio.c
+++ b/
src/lib/stdio.c
@@
-200,6
+200,9
@@
__vprintf (const char *format, va_list args,
case INT:
value = va_arg (args, int);
break;
+ case INTMAX:
+ value = va_arg (args, intmax_t);
+ break;
case LONG:
value = va_arg (args, long);
break;
@@
-241,6
+244,9
@@
__vprintf (const char *format, va_list args,
case INT:
value = va_arg (args, unsigned);
break;
+ case INTMAX:
+ value = va_arg (args, uintmax_t);
+ break;
case LONG:
value = va_arg (args, unsigned long);
break;