diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-27 09:22:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 09:22:47 +0100 |
commit | 426a6fdc17227715d397f8c09849ce0673b37e64 (patch) | |
tree | 9661566abc64fb26d2f0aeeec1d8fd35d39660f3 /modules/gdnative | |
parent | 0ba75c195efffcb098ac74440ffb0fa9c85d0d96 (diff) | |
parent | e5f665c7187b6934a71169cab5075f899150f17a (diff) |
Merge pull request #26134 from marxin/fix-Wsign-compare
Fix -Wsign-compare warnings.
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/videodecoder/video_stream_gdnative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/videodecoder/video_stream_gdnative.cpp b/modules/gdnative/videodecoder/video_stream_gdnative.cpp index 8c2a84f60b..d1794b6c36 100644 --- a/modules/gdnative/videodecoder/video_stream_gdnative.cpp +++ b/modules/gdnative/videodecoder/video_stream_gdnative.cpp @@ -76,7 +76,7 @@ int64_t GDAPI godot_videodecoder_file_seek(void *ptr, int64_t pos, int whence) { } break; case SEEK_CUR: { // Just in case it doesn't exist - if (pos < 0 && -pos > file->get_position()) { + if (pos < 0 && (size_t)-pos > file->get_position()) { return -1; } pos = pos + static_cast<int>(file->get_position()); @@ -86,7 +86,7 @@ int64_t GDAPI godot_videodecoder_file_seek(void *ptr, int64_t pos, int whence) { } break; case SEEK_END: { // Just in case something goes wrong - if (-pos > len) { + if ((size_t)-pos > len) { return -1; } file->seek_end(pos); |