Permalink
Browse files

32bit crashing bug found and fixed. sizeof(jsval*) needed to be sizeo…

…f(jsval)
  • Loading branch information...
1 parent b56e907 commit 98969ffc3f23d6a9ffd18f3654134b87fa952192 @gmbecker committed Jan 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gabe.c
View
2 src/gabe.c
@@ -274,7 +274,7 @@ SEXP R_JS_GetGlobalObject(SEXP Rcon)
SEXP R_jsVal(SEXP Rcon)
{
JSContext *jscon = (JSContext *) R_ExternalPtrAddr(GET_SLOT( Rcon , Rf_install( "ref" ) ) );
- jsval *ret = JS_malloc(jscon, sizeof(jsval*));
+ jsval *ret = JS_malloc(jscon, sizeof(jsval));
SEXP klass, ans, Rptr;
PROTECT( klass = MAKE_CLASS( "jsvalRef" ) );

0 comments on commit 98969ff

Please sign in to comment.