[Poppler-bugs] [Bug 19218] Poppler should not give compile time warnings
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Dec 21 14:05:10 PST 2008
http://bugs.freedesktop.org/show_bug.cgi?id=19218
--- Comment #13 from Albert Astals Cid <tsdgeos at terra.es> 2008-12-21 14:05:09 PST ---
Most of your patch 3 is wrong, see how
int nObjects = INT_MAX;
if (nObjects*(int)sizeof(int)/sizeof(int) != nObjects)
printf("UEEEEEEE\n");
Warns you that you are about to overflow, but
int nObjects = INT_MAX;
if (nObjects*(int)sizeof(int)/(int)sizeof(int) != nObjects)
printf("UEEEEEEE\n");
does not
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list