remove pointless resize
This commit is contained in:
parent
6142aca17a
commit
2061729f4b
1 changed files with 0 additions and 1 deletions
1
slibs.h
1
slibs.h
|
@ -146,7 +146,6 @@ char* sl_c_str(sl_string str);
|
||||||
#ifdef SL_IMPLEMENTATION
|
#ifdef SL_IMPLEMENTATION
|
||||||
char* sl_c_str(sl_string str) {
|
char* sl_c_str(sl_string str) {
|
||||||
sl_vec_push(str, '\0');
|
sl_vec_push(str, '\0');
|
||||||
str.size--;
|
|
||||||
return str.data;
|
return str.data;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue