fixed error message generation

This commit is contained in:
2025-07-22 15:13:10 +05:00
parent d3a8c03fe5
commit 447c15bc46
5 changed files with 18 additions and 17 deletions

View File

@@ -33,8 +33,8 @@ void StringBuilder_append_str(StringBuilder* b, str s){
List_push_size(&b->buffer, s.data, s.size);
}
void StringBuilder_append_cstr(StringBuilder* b, char* s){
StringBuilder_append_str(b, str_construct(s, strlen(s), true));
void StringBuilder_append_cstr(StringBuilder* b, cstr s){
StringBuilder_append_str(b, str_construct((char*)(void*)s, strlen(s), true));
}
void StringBuilder_append_i64(StringBuilder* b, i64 n){