469fa47e06
This changes the types of a big number of variables. General rules: - Using `uint64_t` in general. We also considered `int64_t` but eventually settled on keeping it unsigned, which is also closer to what one would expect with `size_t`/`off_t`. - We only keep `int64_t` for `seek_end` (takes a negative offset from the end) and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means we only need to guard against passing negative values in `core_bind.cpp`. - Using `uint32_t` integers for concepts not needing such a huge range, like pages, blocks, etc. In addition: - Improve usage of integer types in some related places; namely, `DirAccess`, core binds. Note: - On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for big files on 32-bit Windows builds made with that toolchain. We might add a workaround. Fixes #44363. Fixes godotengine/godot-proposals#400. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> |
||
---|---|---|
.. | ||
api | ||
export | ||
java | ||
plugin | ||
vulkan | ||
android_keys_utils.cpp | ||
android_keys_utils.h | ||
audio_driver_jandroid.cpp | ||
audio_driver_jandroid.h | ||
audio_driver_opensl.cpp | ||
audio_driver_opensl.h | ||
detect.py | ||
dir_access_jandroid.cpp | ||
dir_access_jandroid.h | ||
display_server_android.cpp | ||
display_server_android.h | ||
file_access_android.cpp | ||
file_access_android.h | ||
java_class_wrapper.cpp | ||
java_godot_io_wrapper.cpp | ||
java_godot_io_wrapper.h | ||
java_godot_lib_jni.cpp | ||
java_godot_lib_jni.h | ||
java_godot_view_wrapper.cpp | ||
java_godot_view_wrapper.h | ||
java_godot_wrapper.cpp | ||
java_godot_wrapper.h | ||
jni_utils.cpp | ||
jni_utils.h | ||
logo.png | ||
net_socket_android.cpp | ||
net_socket_android.h | ||
os_android.cpp | ||
os_android.h | ||
platform_config.h | ||
run_icon.png | ||
SCsub | ||
string_android.h | ||
thread_jandroid.cpp | ||
thread_jandroid.h |