Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 20f91e8

Browse files
committed
This results in compiler warnings
1 parent 114e7c3 commit 20f91e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nobuild.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,14 +945,14 @@ Cstr path_get_current_dir()
945945
PANIC("could not get current directory: %s", GetLastErrorAsString());
946946
}
947947

948-
Cstr buffer = (Cstr) malloc(nBufferLength);
948+
char *buffer = (char*) malloc(nBufferLength);
949949
if (GetCurrentDirectory(nBufferLength, buffer) == 0) {
950950
PANIC("could not get current directory: %s", GetLastErrorAsString());
951951
}
952952

953953
return buffer;
954954
#else
955-
Cstr buffer = (Cstr) malloc(PATH_MAX);
955+
char *buffer = (char*) malloc(PATH_MAX);
956956
if (getcwd(buffer, PATH_MAX) == NULL) {
957957
PANIC("could not get current directory: %s", strerror(errno));
958958
}

0 commit comments

Comments
 (0)