removed cast
This commit is contained in:
parent
4d90e7dba7
commit
26c54d450a
4
src/sv.c
4
src/sv.c
@ -10,11 +10,11 @@ static int to_lower(char c) {
|
||||
}
|
||||
|
||||
SV sv_str(const char *s){
|
||||
SV str = {s == NULL ? 0 : strlen(s), (char *)s};
|
||||
SV str = {s == NULL ? 0 : strlen(s), s};
|
||||
return str;
|
||||
}
|
||||
SV sv_strn(const char *s, size_t len){
|
||||
SV str = {len, (char *) s};
|
||||
SV str = {len, s};
|
||||
return str;
|
||||
}
|
||||
SV sv_trim(SV s){
|
||||
|
Loading…
Reference in New Issue
Block a user