Skip to content

Commit 9a9a025

Browse files
committed
Fix compile warnings.
1 parent 67dce7d commit 9a9a025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index_entry.nobj.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ typedef git_index_entry IndexEntry;
3737
destructor {
3838
c_source [[
3939
if(${this}->path != NULL) {
40-
free(${this}->path);
40+
free((void *)${this}->path);
4141
}
4242
free(${this});
4343
]]
@@ -94,7 +94,7 @@ typedef git_index_entry IndexEntry;
9494
var_in{"const char *", "val"},
9595
c_source [[
9696
if(${this}->path != NULL) {
97-
free(${this}->path);
97+
free((void *)${this}->path);
9898
}
9999
char * path_buf = malloc(${val_len});
100100
strncpy(path_buf, ${val}, ${val_len});

0 commit comments

Comments
 (0)