fixed some warnings

This commit is contained in:
2025-11-10 01:15:18 +05:00
parent f889990728
commit 247d291da6
4 changed files with 179 additions and 203 deletions

View File

@@ -34,7 +34,7 @@ void print_value(const TomlValue* value)
print_array(value->value.array);
break;
case TOML_STRING:
printf("\"%s\"", value->value.string->str);
printf("\"%s\"", value->value.string->s);
break;
case TOML_INTEGER:
printf("%" PRId64, value->value.integer);
@@ -53,7 +53,7 @@ void print_value(const TomlValue* value)
void print_keyval(const TomlKeyValue *keyval)
{
printf("\"%s\": ", keyval->key->str);
printf("\"%s\": ", keyval->key->s);
print_value(keyval->value);
}