Skip to content

Commit 3c0f769

Browse files
att
1 parent c243cac commit 3c0f769

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

doTheWorld.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6023,7 +6023,7 @@ char * private_dtw_format_vaarg(const char *expresion, va_list args){
60236023

60246024
char *private_dtw_format_path(const char *path){
60256025
int path_size = (int)strlen(path);
6026-
char *buffer = malloc((path_size+2) * sizeof(char));
6026+
char *buffer = (char*)malloc((path_size+2) * sizeof(char));
60276027
int buffer_size = 0;
60286028
bool already_concatened = false;
60296029
for(long i = 0; i < path_size;i++){
@@ -9812,7 +9812,7 @@ void DtwResource_rename(DtwResource *self,const char *new_name){
98129812
);
98139813
return;
98149814
}
9815-
DtwResourceArray *sons =self->sub_resources;
9815+
DtwResourceArray *sons =(DtwResourceArray*)self->sub_resources;
98169816
if(sons->size > 0){
98179817
private_DtwResource_raise_error(
98189818
self,

src/resource/resource/extras/extras.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void DtwResource_rename(DtwResource *self,const char *new_name){
7777
);
7878
return;
7979
}
80-
DtwResourceArray *sons =self->sub_resources;
80+
DtwResourceArray *sons =(DtwResourceArray*)self->sub_resources;
8181
if(sons->size > 0){
8282
private_DtwResource_raise_error(
8383
self,

src/string_functions/string_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ char * private_dtw_format_vaarg(const char *expresion, va_list args){
4444

4545
char *private_dtw_format_path(const char *path){
4646
int path_size = (int)strlen(path);
47-
char *buffer = malloc((path_size+2) * sizeof(char));
47+
char *buffer = (char*)malloc((path_size+2) * sizeof(char));
4848
int buffer_size = 0;
4949
bool already_concatened = false;
5050
for(long i = 0; i < path_size;i++){

tests/doTheWorld_test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6023,7 +6023,7 @@ char * private_dtw_format_vaarg(const char *expresion, va_list args){
60236023

60246024
char *private_dtw_format_path(const char *path){
60256025
int path_size = (int)strlen(path);
6026-
char *buffer = malloc((path_size+2) * sizeof(char));
6026+
char *buffer = (char*)malloc((path_size+2) * sizeof(char));
60276027
int buffer_size = 0;
60286028
bool already_concatened = false;
60296029
for(long i = 0; i < path_size;i++){
@@ -9812,7 +9812,7 @@ void DtwResource_rename(DtwResource *self,const char *new_name){
98129812
);
98139813
return;
98149814
}
9815-
DtwResourceArray *sons =self->sub_resources;
9815+
DtwResourceArray *sons =(DtwResourceArray*)self->sub_resources;
98169816
if(sons->size > 0){
98179817
private_DtwResource_raise_error(
98189818
self,
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
3
21
1
3-
8
4-
9
5-
0
6-
2
72
7
8-
6
3+
4
4+
0
5+
9
96
5
10-
4
7+
8
8+
3
9+
6
10+
2

0 commit comments

Comments
 (0)