mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
Fix minor errors for *nix
This commit is contained in:
@@ -237,7 +237,7 @@ String path_to_fullpath(gbAllocator a, String s) {
|
||||
String path_to_fullpath(gbAllocator a, String s) {
|
||||
char *p;
|
||||
gb_mutex_lock(&string_buffer_mutex);
|
||||
p = realpath(cast(char *)s.data, 0);
|
||||
p = realpath(cast(char *)s.text, 0);
|
||||
gb_mutex_unlock(&string_buffer_mutex);
|
||||
if(p == nullptr) return make_string_c("");
|
||||
return make_string_c(p);
|
||||
|
||||
@@ -3613,7 +3613,7 @@ String ir_mangle_name(irGen *s, String path, Entity *e) {
|
||||
cast(char *)new_name, max_len,
|
||||
"%.*s-%u.%.*s",
|
||||
cast(int)base_len, base,
|
||||
file->id,
|
||||
cast(u32)file->id,
|
||||
LIT(name));
|
||||
}
|
||||
if (require_suffix_id) {
|
||||
|
||||
@@ -2556,7 +2556,7 @@ String ssa_mangle_name(ssaModule *m, String path, Entity *e) {
|
||||
cast(char *)new_name, max_len,
|
||||
"%.*s-%u.%.*s",
|
||||
cast(int)base_len, base,
|
||||
file->id,
|
||||
cast(u32)file->id,
|
||||
LIT(name));
|
||||
if (is_overloaded) {
|
||||
char *str = cast(char *)new_name + new_name_len-1;
|
||||
|
||||
Reference in New Issue
Block a user