Cast to avoid MSVC warnings
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user