From 91edbf71c8cac4fff72152d287ea96791b2731e5 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Mon, 8 May 2017 05:33:01 +0200 Subject: [PATCH] Fix derp --- source/fmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fmt.c b/source/fmt.c index a36e727..d761530 100644 --- a/source/fmt.c +++ b/source/fmt.c @@ -260,7 +260,7 @@ u32 vsprintf(char *buf, const char *fmt, va_list args) if(flags & SIGN) { - if(integerType == 1) va_arg(args, s64); + if(integerType == 1) num = va_arg(args, s64); else num = va_arg(args, s32); if(integerType == 2) num = (s16)num; @@ -268,7 +268,7 @@ u32 vsprintf(char *buf, const char *fmt, va_list args) } else { - if(integerType == 1) va_arg(args, u64); + if(integerType == 1) num = va_arg(args, u64); else num = va_arg(args, u32); if(integerType == 2) num = (u16)num;