mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 04:35:00 -07:00
Make the string type elements "immutable", akin to char const * in C
Allows for extra security and optimization benefits
This commit is contained in:
@@ -493,8 +493,8 @@ String path_to_fullpath(gbAllocator a, String s) {
|
||||
|
||||
// Replace Windows style separators
|
||||
for (isize i = 0; i < result.len; i++) {
|
||||
if (result[i] == '\\') {
|
||||
result[i] = '/';
|
||||
if (result.text[i] == '\\') {
|
||||
result.text[i] = '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user