Fix warning.

This commit is contained in:
Relintai 2023-05-31 01:38:42 +02:00
parent ba6d070503
commit 5ac196aca5
2 changed files with 3 additions and 4 deletions

View File

@ -59,10 +59,9 @@ char GDAPI pandemonium_char_16_string_get(const pandemonium_char_16_string *p_se
*((char *)&dest) = self->get(p_index);
return dest;
}
void GDAPI pandemonium_char_16_string_set(pandemonium_char_16_string *p_self, pandemonium_int p_index, const char p_elem) {
void GDAPI pandemonium_char_16_string_set(pandemonium_char_16_string *p_self, pandemonium_int p_index, const char16_t p_elem) {
Char16String *self = (Char16String *)p_self;
const char *elem = (const char *)p_elem;
self->set(p_index, *elem);
self->set(p_index, p_elem);
}
pandemonium_int GDAPI pandemonium_char_16_string_length(const pandemonium_char_16_string *p_cs) {

View File

@ -85,7 +85,7 @@ pandemonium_int GDAPI pandemonium_char_16_string_size(const pandemonium_char_16_
pandemonium_error GDAPI pandemonium_char_16_string_resize(pandemonium_char_16_string *p_self, pandemonium_int p_size);
char GDAPI pandemonium_char_16_string_get(const pandemonium_char_16_string *p_self, pandemonium_int p_index);
void GDAPI pandemonium_char_16_string_set(pandemonium_char_16_string *p_self, pandemonium_int p_index, const char p_elem);
void GDAPI pandemonium_char_16_string_set(pandemonium_char_16_string *p_self, pandemonium_int p_index, const char16_t p_elem);
//_FORCE_INLINE_ void operator=(const Char16String &p_str);
//void operator=(const char *p_cstr);