diff dyncall/dyncall_callvm_sparc.c @ 163:ddcf2e49654c

- tiny compatibility fix with < c99 compilers
author cslag
date Sun, 01 Jan 2017 23:26:39 +0100
parents 67961454902b
children f5577f6bf97a
line wrap: on
line diff
--- a/dyncall/dyncall_callvm_sparc.c	Thu Dec 29 13:00:35 2016 -0600
+++ b/dyncall/dyncall_callvm_sparc.c	Sun Jan 01 23:26:39 2017 +0100
@@ -149,9 +149,11 @@
 /* Public API. */
 DCCallVM* dcNewCallVM(DCsize size)
 {
+  DCCallVM_sparc* p;
+
   /* the six output registers %o0-%o5 are always loaded, thus we need to ensure the argument buffer has space for at least 24 bytes. */
   size = DC_MAX(size, sizeof(void*)*(6+1));
-  DCCallVM_sparc* p = (DCCallVM_sparc*)dcAllocMem(sizeof(DCCallVM_sparc)+size);
+  p = (DCCallVM_sparc*)dcAllocMem(sizeof(DCCallVM_sparc)+size);
 
   dc_callvm_mode_sparc((DCCallVM*)p, DC_CALL_C_DEFAULT);