diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2018-03-30 11:39:33 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2018-03-30 11:39:33 -0400 |
commit | 769b3dbcea116b83f913a6aae00b4e43633be82c (patch) | |
tree | c9590a05c17cb7ca115c4e1053e4366edecff7a7 /src/stdlib.c | |
parent | 234beaee5de14a601af3eef97f291cddfe5d1b80 (diff) |
new initrd format, 2nd layer for keypad
Diffstat (limited to 'src/stdlib.c')
-rw-r--r-- | src/stdlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib.c b/src/stdlib.c index 950f356..b7b11dc 100644 --- a/src/stdlib.c +++ b/src/stdlib.c @@ -23,8 +23,8 @@ #include <stdlib.h> #include <ctype.h> +#include <heap.h> #include <stdarg.h> -#include <stdint.h> #include <string.h> extern char *itoa(int, char *, int); @@ -61,7 +61,7 @@ char *snprintf(char *buf, unsigned int max, const char *format, ...) itoa(va_arg(args, unsigned int), nbuf, 16); break; case 'f': - itoa((int)va_arg(args, double), nbuf, 10); + itoa(va_arg(args, double), nbuf, 10); break; default: buf[off++] = format[i]; |