llvmpipe: use 1ULL to be ready for 64-bit arithmetic someday

This commit is contained in:
Brian Paul 2009-12-15 07:58:37 -07:00
parent 55879440d7
commit 276b8523e8
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ lp_build_abs(struct lp_build_context *bld,
if(type.floating) {
/* Mask out the sign bit */
LLVMTypeRef int_vec_type = lp_build_int_vec_type(type);
unsigned long absMask = ~(1 << (type.width - 1));
unsigned long long absMask = ~(1ULL << (type.width - 1));
LLVMValueRef mask = lp_build_int_const_scalar(type, ((unsigned long long) absMask));
a = LLVMBuildBitCast(bld->builder, a, int_vec_type, "");
a = LLVMBuildAnd(bld->builder, a, mask, "");