Skip to content
Snippets Groups Projects
Commit 25974ddc authored by deuce's avatar deuce
Browse files

Fix warning (cast to 'char *' from smaller integer type 'unsigned int')

parent 4c0f1734
No related branches found
No related tags found
No related merge requests found
......@@ -2324,7 +2324,7 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsid id)
/* Store node number */
/* We have to shift it to make it look like a pointer to JS. :-( */
if(!JS_SetPrivate(cx, nodeobj, (char*)((i+1)<<1)))
if(!JS_SetPrivate(cx, nodeobj, (char*)(((uintptr_t)i+1)<<1)))
return(JS_FALSE);
#ifdef BUILD_JSDOCS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment