diff options
Diffstat (limited to 'source/blender/imbuf/intern/divers.c')
-rw-r--r-- | source/blender/imbuf/intern/divers.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index 3603128ce44..6b46af30f8b 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -157,8 +157,10 @@ void IMB_gamwarp(struct ImBuf *ibuf, double gamma) rect = (uchar *) ibuf->rect; for (i = ibuf->x * ibuf->y ; i>0 ; i--){ rect ++; - *rect ++ = gam[*rect]; - *rect ++ = gam[*rect]; - *rect ++ = gam[*rect]; + /* put a warning in gcc : operation may be undefined : */ + /* it is true it's rather convoluted even by C standards ;) */ + *rect ++ = gam[*rect]; /*FIXME*/ + *rect ++ = gam[*rect]; /*FIXME*/ + *rect ++ = gam[*rect]; /*FIXME*/ } } |