...
 
Commits (1)
......@@ -129,7 +129,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
if(id != JSID_VOID && id != JSID_EMPTY) {
jsval idval;
JS_IdToValue(cx, id, &idval);
if(JSVAL_IS_STRING(idval))
JSSTRING_TO_MSTRING(cx, JSVAL_TO_STRING(idval), name, NULL);
......@@ -219,7 +219,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
lib_index=-1;
if(p->user==NULL || chk_ar(p->cfg,p->cfg->lib[l]->ar,p->user,p->client)) {
if(!JS_GetArrayLength(cx, lib_list, &lib_index))
if(!JS_GetArrayLength(cx, lib_list, (jsuint*)&lib_index))
return JS_FALSE;
if(!JS_SetElement(cx, lib_list, lib_index, &val))
......@@ -291,7 +291,7 @@ JSBool DLLCALL js_file_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
dir_index=-1;
if(p->user==NULL || chk_ar(p->cfg,p->cfg->dir[d]->ar,p->user,p->client)) {
if(!JS_GetArrayLength(cx, dir_list, &dir_index))
if(!JS_GetArrayLength(cx, dir_list, (jsuint*)&dir_index))
return JS_FALSE;
if(!JS_SetElement(cx, dir_list, dir_index, &val))
......
......@@ -447,7 +447,7 @@ JSBool DLLCALL js_msg_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
grp_index=-1;
if(p->user==NULL || chk_ar(p->cfg,p->cfg->grp[l]->ar,p->user,p->client)) {
if(!JS_GetArrayLength(cx, grp_list, &grp_index))
if(!JS_GetArrayLength(cx, grp_list, (jsuint*)&grp_index))
return JS_FALSE;
if(!JS_SetElement(cx, grp_list, grp_index, &val))
......@@ -538,7 +538,7 @@ JSBool DLLCALL js_msg_area_resolve(JSContext* cx, JSObject* areaobj, jsid id)
sub_index=-1;
if(p->user==NULL || can_user_access_sub(p->cfg,d,p->user,p->client)) {
if(!JS_GetArrayLength(cx, sub_list, &sub_index))
if(!JS_GetArrayLength(cx, sub_list, (jsuint*)&sub_index))
return JS_FALSE;
if(!JS_SetElement(cx, sub_list, sub_index, &val))
......
......@@ -1223,7 +1223,6 @@ int DLLCALL mkpath(const char* path)
BOOL CopyFile(const char* src, const char* dest, BOOL failIfExists)
{
uint8_t buf[256 * 1024];
ulong count=0;
FILE* in;
FILE* out;
BOOL success=TRUE;
......