forked from old/legacy-imlib2
Correct image dimension check (pixels are four bytes).
SVN revision: 43242
This commit is contained in:
parent
3bcb4f4746
commit
9ca97f2001
|
@ -190,6 +190,6 @@ __hidden void __imlib_SaveImage(ImlibImage *im, const char *file,
|
||||||
|
|
||||||
# define IMAGE_DIMENSIONS_OK(w, h) \
|
# define IMAGE_DIMENSIONS_OK(w, h) \
|
||||||
( ((w) > 0) && ((h) > 0) && \
|
( ((w) > 0) && ((h) > 0) && \
|
||||||
((unsigned long long)(w) * (unsigned long long)(w) <= (1ULL << 31) - 1) )
|
((unsigned long long)(w) * (unsigned long long)(w) <= (1ULL << 29) - 1) )
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue