Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / util / fast_idiv_by_const.c
index 7b93316268c2a3e00827bf1829d3966aa6a4d39b..4f0f6b769b812e4a5ecd9391fe2d5f0b13b50276 100644 (file)
@@ -172,7 +172,7 @@ util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS)
 static inline int64_t
 sign_extend(int64_t x, unsigned SINT_BITS)
 {
-   return (x << (64 - SINT_BITS)) >> (64 - SINT_BITS);
+   return (int64_t)((uint64_t)x << (64 - SINT_BITS)) >> (64 - SINT_BITS);
 }
 
 struct util_fast_sdiv_info