Skip to content

Commit 982a420

Browse files
committed
FIX: warning: incompatible pointer types passing
1 parent 41a8288 commit 982a420

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/f-extension.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ x*/ int Do_Callback(REBSER *obj, u32 name, RXIARG *args, RXIARG *result)
347347
path = Value_To_OS_Path(val, FALSE);
348348

349349
// Try to load the DLL file:
350-
if (!(dll = OS_OPEN_LIBRARY(SERIES_DATA(path), &error))) {
350+
if (!(dll = OS_OPEN_LIBRARY((REBCHR*)SERIES_DATA(path), &error))) {
351351
//printf("error: %i\n", error);
352352
Trap1(RE_NO_EXTENSION, val);
353353
}

src/core/n-io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static REBSER *Read_All_File(char *fname)
497497
}
498498
// Try to call realpath on posix or _fullpath on Windows
499499
// Returned string must be released once done!
500-
tmp = OS_REAL_PATH(SERIES_DATA(ser));
500+
tmp = OS_REAL_PATH((REBCHR*)SERIES_DATA(ser));
501501
if (!tmp) return R_NONE;
502502

503503
// Convert OS native wide string back to Rebol file type

0 commit comments

Comments
 (0)