Skip to content

Commit

Permalink
FIX: warning: incompatible pointer types passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 14, 2023
1 parent 41a8288 commit 982a420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/f-extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ x*/ int Do_Callback(REBSER *obj, u32 name, RXIARG *args, RXIARG *result)
path = Value_To_OS_Path(val, FALSE);

// Try to load the DLL file:
if (!(dll = OS_OPEN_LIBRARY(SERIES_DATA(path), &error))) {
if (!(dll = OS_OPEN_LIBRARY((REBCHR*)SERIES_DATA(path), &error))) {
//printf("error: %i\n", error);
Trap1(RE_NO_EXTENSION, val);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/n-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static REBSER *Read_All_File(char *fname)
}
// Try to call realpath on posix or _fullpath on Windows
// Returned string must be released once done!
tmp = OS_REAL_PATH(SERIES_DATA(ser));
tmp = OS_REAL_PATH((REBCHR*)SERIES_DATA(ser));
if (!tmp) return R_NONE;

// Convert OS native wide string back to Rebol file type
Expand Down

0 comments on commit 982a420

Please sign in to comment.