diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-07-21 18:26:27 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-07-21 18:26:27 +0400 |
commit | 08ef5adb93827565894d112d4ed9ed19746013ba (patch) | |
tree | b6f70e0cdc3fdfb571c72013f06383acf3ee6674 /source/blender/imbuf/intern | |
parent | 636b314677036b9240fd4e7f9454e8a7f59d4d51 (diff) |
Fixes for recent Wlimit stuff, which makes strict gcc freak out
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/cineon/logmemfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/cineon/logmemfile.c b/source/blender/imbuf/intern/cineon/logmemfile.c index 3914f6dc633..e52660faf66 100644 --- a/source/blender/imbuf/intern/cineon/logmemfile.c +++ b/source/blender/imbuf/intern/cineon/logmemfile.c @@ -50,7 +50,7 @@ int logimage_fseek(LogImageFile *logFile, intptr_t offset, int origin) } else if (origin == SEEK_CUR) { uintptr_t pos = (uintptr_t)logFile->memCursor - (uintptr_t)logFile->memBuffer; - if (pos + offset > logFile->memBufferSize || pos < 0) + if (pos + offset > logFile->memBufferSize) return 1; logFile->memCursor += offset; |