Created
February 7, 2015 06:29
-
-
Save kangaroo/bd1f95684518b0f70ad5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/pal/src/cruntime/printf.cpp b/src/pal/src/cruntime/printf.cpp | |
index bd22af0..0fe9649 100644 | |
--- a/src/pal/src/cruntime/printf.cpp | |
+++ b/src/pal/src/cruntime/printf.cpp | |
@@ -148,7 +148,11 @@ void PAL_printf_arg_remover(va_list *ap, INT Precision, INT Type, INT Prefix) | |
} | |
if (Type == PFF_TYPE_FLOAT) | |
{ | |
- (void)va_arg(*ap, double); | |
+#if defined(__APPLE__) | |
+ (void)va_arg(*ap, LONG); | |
+#else | |
+ (void)va_arg(*ap, float); | |
+#endif | |
} | |
else if (Type == PFF_TYPE_INT && Prefix == PFF_PREFIX_LONGLONG) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment