Skip to content

Instantly share code, notes, and snippets.

@kangaroo
Created February 7, 2015 06:29
Show Gist options
  • Save kangaroo/bd1f95684518b0f70ad5 to your computer and use it in GitHub Desktop.
Save kangaroo/bd1f95684518b0f70ad5 to your computer and use it in GitHub Desktop.
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