Browse Source

fixed warnings in 64bit

Nicolas Cannasse 7 năm trước cách đây
mục cha
commit
3e6e67a119
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      libs/ui/ui_win.c

+ 2 - 2
libs/ui/ui_win.c

@@ -289,7 +289,7 @@ HL_PRIM vbyte *HL_NAME(ui_choose_file)( bool forSave, vdynamic *options ) {
 		int i, pos = 0;
 		for(i=0;i<filters->size;i++) {
 			wchar_t *str = hl_aptr(filters,wchar_t*)[i];
-			int len = wcslen(str);
+			int len = (int)wcslen(str);
 			if( pos + len > 1024 ) return false;
 			memcpy(filterStr + pos, str, (len + 1) << 1);
 			pos += len + 1;
@@ -314,7 +314,7 @@ HL_PRIM vbyte *HL_NAME(ui_choose_file)( bool forSave, vdynamic *options ) {
 		if( !GetOpenFileName(&op) )
 			return NULL;
 	}
-	return hl_copy_bytes((vbyte*)outputFile, (wcslen(outputFile)+1)*2);
+	return hl_copy_bytes((vbyte*)outputFile, (int)(wcslen(outputFile)+1)*2);
 }