[Mesa-dev] [PATCH] gen_matypes: eliminate printf warnings

2011-12-09 Thread nobled
The VERT_BIT_* defines are 64-bit values since commit f364ac1da10ff67eba5196c1074aff579864f741, but the printf was still expecting a simple int. This worked on little-endian hosts because the values were still less than INT_MAX, but probably would've gone bad and printed zero on big-endian ones.

Re: [Mesa-dev] [PATCH] gen_matypes: eliminate printf warnings

2011-12-09 Thread Brian Paul
On 12/09/2011 07:00 AM, nobled wrote: The VERT_BIT_* defines are 64-bit values since commit f364ac1da10ff67eba5196c1074aff579864f741, but the printf was still expecting a simple int. This worked on little-endian hosts because the values were still less than INT_MAX, but probably would've gone

Re: [Mesa-dev] [PATCH] gen_matypes: eliminate printf warnings

2011-12-09 Thread Jose Fonseca
- Original Message - On 12/09/2011 07:00 AM, nobled wrote: The VERT_BIT_* defines are 64-bit values since commit f364ac1da10ff67eba5196c1074aff579864f741, but the printf was still expecting a simple int. This worked on little-endian hosts because the values were still less than

Re: [Mesa-dev] [PATCH] gen_matypes: eliminate printf warnings

2011-12-09 Thread Brian Paul
On 12/09/2011 07:59 AM, Jose Fonseca wrote: - Original Message - On 12/09/2011 07:00 AM, nobled wrote: The VERT_BIT_* defines are 64-bit values since commit f364ac1da10ff67eba5196c1074aff579864f741, but the printf was still expecting a simple int. This worked on little-endian hosts

Re: [Mesa-dev] [PATCH] gen_matypes: eliminate printf warnings

2011-12-09 Thread Jose Fonseca
- Original Message - On 12/09/2011 07:59 AM, Jose Fonseca wrote: - Original Message - On 12/09/2011 07:00 AM, nobled wrote: The VERT_BIT_* defines are 64-bit values since commit f364ac1da10ff67eba5196c1074aff579864f741, but the printf was still expecting a simple