bugfix
authoredwin <none@none>
Sun, 14 Dec 2003 21:59:53 +0000 (21:59 +0000)
committeredwin <none@none>
Sun, 14 Dec 2003 21:59:53 +0000 (21:59 +0000)
jit/typecheck.c
src/vm/jit/verify/typecheck.c

index 1de7717cbb825827388ca6a5f467a8fdf9b932c8..e5e4ed1ca1bed224cf3600a66f5cca4c5723cc90 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typecheck.c 730 2003-12-11 21:23:31Z edwin $
+   $Id: typecheck.c 780 2003-12-14 21:59:53Z edwin $
 
 */
 
@@ -716,7 +716,7 @@ typecheck()
     touched = DMNEW(u1,numlocals);
     vtype = vartype + numlocals * block_count;
     vinfo = vartypeinfo + numlocals * block_count;
-    memset(vartype,TYPE_VOID,numlocals * (block_count+1) * sizeof(typeinfo));
+    memset(vartype,TYPE_VOID,numlocals * (block_count+1) * sizeof(u1));
     memset(vartypeinfo,0,numlocals * (block_count+1) * sizeof(typeinfo));
 
     LOG("Variable buffer initialized.\n");
index 1de7717cbb825827388ca6a5f467a8fdf9b932c8..e5e4ed1ca1bed224cf3600a66f5cca4c5723cc90 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typecheck.c 730 2003-12-11 21:23:31Z edwin $
+   $Id: typecheck.c 780 2003-12-14 21:59:53Z edwin $
 
 */
 
@@ -716,7 +716,7 @@ typecheck()
     touched = DMNEW(u1,numlocals);
     vtype = vartype + numlocals * block_count;
     vinfo = vartypeinfo + numlocals * block_count;
-    memset(vartype,TYPE_VOID,numlocals * (block_count+1) * sizeof(typeinfo));
+    memset(vartype,TYPE_VOID,numlocals * (block_count+1) * sizeof(u1));
     memset(vartypeinfo,0,numlocals * (block_count+1) * sizeof(typeinfo));
 
     LOG("Variable buffer initialized.\n");