Cast to avoid MSVC warnings

This commit is contained in:
2025-12-15 19:48:58 +00:00
parent b55a3ff5d8
commit e3c1283017
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ u64 wapp_file_get_current_position(File *file) {
i32 wapp_file_seek(File *file, u64 offset, FileSeekOrigin origin) {
wapp_debug_assert(file != NULL, "`file` should not be NULL.");
return fseek(file, offset, origin);
// TODO (Abdelrahman): Revisit conversion to long
return fseek(file, (long)offset, origin);
}
u64 wapp_file_get_length(File *file) {

View File

@@ -247,7 +247,7 @@ void wapp_str8_to_lower(Str8 *dst, Str8RO *src) {
dst->size = src->size;
for (u64 i = 0; i < src->size; ++i) {
wapp_str8_set(dst, i, tolower(wapp_str8_get(src, i)));
wapp_str8_set(dst, i, (u8)tolower(wapp_str8_get(src, i)));
}
}
@@ -257,7 +257,7 @@ void wapp_str8_to_upper(Str8 *dst, Str8RO *src) {
dst->size = src->size;
for (u64 i = 0; i < src->size; ++i) {
wapp_str8_set(dst, i, toupper(wapp_str8_get(src, i)));
wapp_str8_set(dst, i, (u8)toupper(wapp_str8_get(src, i)));
}
}