Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-17 05:13:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-17 05:13:02 +0400
commit994f4bb3f78a467b6c34e30a9b8868fc4d01caf0 (patch)
tree937012cf0ba4a01d928c8c52c7794a683112d6a5 /source/blender/blenkernel
parentad96dacbc5a7cc61ccf74405927847f243a955b5 (diff)
Code cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 7c2542b33be..25ff7b5fa04 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -1508,10 +1508,7 @@ int BKE_write_ibuf(ImBuf *ibuf, const char *name, ImageFormatData *imf)
int ok;
- if(imtype == -1) {
- /* use whatever existing image type is set by 'ibuf' */
- }
- else if(imtype== R_IMF_IMTYPE_IRIS) {
+ if(imtype== R_IMF_IMTYPE_IRIS) {
ibuf->ftype= IMAGIC;
}
#ifdef WITH_HDR