Does it help to use the 'U' suffix, changing those two lines to:
OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295U)), 4294967295U);
OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295U)), 65535);
??
On Jul 12, 2013, at 6:10 AM, Matteo F. Vescovi wrote:
> Extract from failing buildlog for 1.2.0 on i386 architecture (Debian
> Unstable/Experimental):
>
> === >8 ===
>
> /tmp/buildd/openimageio-1.2.0~dfsg0/src/libOpenImageIO/fmath_test.cpp:75:5:
> error: this decimal constant is unsigned only in ISO C90 [-Werror]
> OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295)), 4294967295);
> ^
> /tmp/buildd/openimageio-1.2.0~dfsg0/src/libOpenImageIO/fmath_test.cpp:75:5:
> error: this decimal constant is unsigned only in ISO C90 [-Werror]
> /tmp/buildd/openimageio-1.2.0~dfsg0/src/libOpenImageIO/fmath_test.cpp:75:5:
> error: this decimal constant is unsigned only in ISO C90 [-Werror]
> /tmp/buildd/openimageio-1.2.0~dfsg0/src/libOpenImageIO/fmath_test.cpp:75:5:
> error: this decimal constant is unsigned only in ISO C90 [-Werror]
> /tmp/buildd/openimageio-1.2.0~dfsg0/src/libOpenImageIO/fmath_test.cpp:76:5:
> error: this decimal constant is unsigned only in ISO C90 [-Werror]
> OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295)), 65535);
> ^
> === >8 ===
> Anyone else facing the same issue?
>
> TIA.
>
> --
> Matteo F. Vescovi
> Debian Maintainer
> GnuPG KeyID: 0x83B2CF7A
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org