From 369b5a311ca5e03bc4cccc3052800b94e316087d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 Oct 2012 15:54:11 -0600 Subject: gallivm/llvmpipe: fix 64-bit %ll format compiler warnings for mingw32 Use the PRIx64 and PRIu64 format macros from inttypes.h. We made a similar change in prog_print.c in df2d81ea59993a77bd1f1ef96c5cf19ac692d5f7. --- src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/gallivm') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c index 641c960431d..201a3487588 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c @@ -32,7 +32,7 @@ * @author Jose Fonseca */ - +#include /* for PRIx64 macro */ #include "util/u_debug.h" #include "lp_bld_type.h" @@ -386,7 +386,7 @@ lp_build_swizzle_aos(struct lp_build_context *bld, * same shift as possible */ for (shift = -3; shift <= 3; ++shift) { - unsigned long long mask = 0; + uint64_t mask = 0; assert(type4.width <= sizeof(mask)*8); @@ -401,9 +401,8 @@ lp_build_swizzle_aos(struct lp_build_context *bld, if (mask) { LLVMValueRef masked; LLVMValueRef shifted; - if (0) - debug_printf("shift = %i, mask = 0x%08llx\n", shift, mask); + debug_printf("shift = %i, mask = %" PRIx64 "\n", shift, mask); masked = LLVMBuildAnd(builder, a, lp_build_const_int_vec(bld->gallivm, type4, mask), ""); -- cgit v1.2.3