Skip to content

Instantly share code, notes, and snippets.

@gerdr
Created June 1, 2012 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerdr/2852706 to your computer and use it in GitHub Desktop.
Save gerdr/2852706 to your computer and use it in GitHub Desktop.
fix va_list test
diff --git a/config/auto/va_ptr/test_c.in b/config/auto/va_ptr/test_c.in
index f8eb2d4..7dee557 100644
--- a/config/auto/va_ptr/test_c.in
+++ b/config/auto/va_ptr/test_c.in
@@ -7,7 +7,7 @@ Copyright (C) 2005-2009, Parrot Foundation.
#include <stdarg.h>
#if defined VA_TYPE_REGISTER
-# define PARROT_VA_TO_VAPTR(x) (x)
+# define PARROT_VA_TO_VAPTR(x) ((va_list *)(x))
#endif
#if defined VA_TYPE_STACK
# define PARROT_VA_TO_VAPTR(x) (&(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment