[gs-bugs] [Bug 689632] integer constant is too large for ‘ long’ type

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Mon Dec 31 13:46:06 PST 2007


http://bugs.ghostscript.com/show_bug.cgi?id=689632





------- Additional Comments From alex.cherepanov at artifex.com  2007-12-31 13:46 -------
The following example compiles on MSVC and GCC without warnings.
The extra verbosity can be hidden inside a macro.

static gx_color_index TEST2 = (gx_color_index)0x08080808 *
                              (gx_color_index)0x10000 *
                              (gx_color_index)0x10000
                            + (gx_color_index)0x08080808 ;

Regarding the marked constants, the long long type may not be available
and the suffixes vary when it is available.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the gs-bugs mailing list