aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-08-02 18:31:52 +0200
committerAndre Weissflog <floooh@gmail.com>2019-08-02 18:31:52 +0200
commit398ce2bba67a8d22cff5143065c12c06965dd5ba (patch)
treef6a3eb9494dcd578b4ab5798bcffd32a9f9969ff
parente56d489d27b8f0c15e7e449400bd1d8012c7af21 (diff)
sokol_fetch.h: fix a clang warning on iOS
-rw-r--r--sokol_fetch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_fetch.h b/sokol_fetch.h
index 4c14bc8c..20d1ed42 100644
--- a/sokol_fetch.h
+++ b/sokol_fetch.h
@@ -1450,7 +1450,7 @@ _SOKOL_PRIVATE bool _sfetch_file_handle_valid(_sfetch_file_handle_t h) {
_SOKOL_PRIVATE uint32_t _sfetch_file_size(_sfetch_file_handle_t h) {
fseek(h, 0, SEEK_END);
- return ftell(h);
+ return (uint32_t) ftell(h);
}
_SOKOL_PRIVATE bool _sfetch_file_read(_sfetch_file_handle_t h, uint32_t offset, uint32_t num_bytes, void* ptr) {