summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_math.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-29 15:00:12 +0200
committerMarek Olšák <[email protected]>2016-08-01 23:28:14 +0200
commit6db93cd167d3ae04688c192806aad54a05a9d161 (patch)
tree410b83bb848d12988fb8e3f9fd4f9ee89ac6879d /src/gallium/auxiliary/util/u_math.h
parent88ad8c7dedb87d92a5bed0868f108076185ec089 (diff)
gallium/util: fix align64
it cut off the upper 32 bits Cc: [email protected] Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_math.h')
-rw-r--r--src/gallium/auxiliary/util/u_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index c94967e8a42..1661e63dbdd 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -682,7 +682,7 @@ align(int value, int alignment)
static inline uint64_t
align64(uint64_t value, unsigned alignment)
{
- return (value + alignment - 1) & ~(alignment - 1);
+ return (value + alignment - 1) & ~((uint64_t)alignment - 1);
}
/**