Skip to content
Snippets Groups Projects
Commit db4d0c9c authored by rswindell's avatar rswindell
Browse files

Fixed localtime_r() time_t pointer warning (gcc).

parent 8b9566c8
No related branches found
No related tags found
No related merge requests found
......@@ -2077,7 +2077,7 @@ js_strftime(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
JS_ValueToInt32(cx,argv[1],&t);
strcpy(str,"-Invalid time-");
if(localtime_r(&t,&tm)==NULL)
if(localtime_r((time_t*)&t,&tm)==NULL)
memset(&tm,0,sizeof(tm));
strftime(str,sizeof(str),fmt,&tm);
......
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