fix prosperon layout
This commit is contained in:
@@ -110,7 +110,7 @@ static JSValue js_mersenne_use_call(JSContext *js, JSValueConst new_target, int
|
||||
}
|
||||
}
|
||||
|
||||
MTRand *mrand = js_malloc(js, sizeof(MTRand));
|
||||
MTRand *mrand = js_malloc_rt(sizeof(MTRand));
|
||||
if (!mrand) return JS_ThrowOutOfMemory(js);
|
||||
|
||||
m_seedRand(mrand, seed);
|
||||
@@ -118,7 +118,7 @@ static JSValue js_mersenne_use_call(JSContext *js, JSValueConst new_target, int
|
||||
JS_FRAME(js);
|
||||
JS_ROOT(obj, JS_NewObjectClass(js, js_mersenne_class_id));
|
||||
if (JS_IsException(obj.val)) {
|
||||
js_free(js, mrand);
|
||||
js_free_rt(mrand);
|
||||
JS_RETURN_EX();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user