]> git.sur5r.net Git - cc65/commitdiff
va_start has also changed since the address of a fixed parameter is now
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 23 Mar 2001 20:07:42 +0000 (20:07 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 23 Mar 2001 20:07:42 +0000 (20:07 +0000)
calculated by the compiler.

git-svn-id: svn://svn.cc65.org/cc65/trunk@655 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/stdarg.h

index fe0fa9f07aa2aed1b9a6d4d427fe61445e13f497..be9ce537ff89976f507b3e72256f0152f0afb05d 100644 (file)
@@ -40,7 +40,7 @@
 
 typedef unsigned char* va_list;
 
-#define va_start(ap, fix)              ap = (va_list)&fix + __argsize__ - __fixargs__
+#define va_start(ap, fix)              ap = ((va_list)&(fix))
 #define va_arg(ap,type)                (*(type*)(ap -= ((sizeof (type) + 1) & ~1)))
 #define va_copy(dest, src)     ((dest)=(src))
 #define va_end(ap)