diff options
author | Jordan Justen <[email protected]> | 2016-01-06 15:42:18 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-01-07 10:37:35 -0800 |
commit | 2f0a10149c6e5ea7f2c5ddfa13f71011db0ef420 (patch) | |
tree | 34d4a7f040b6b59fe0f9b070b4caa765b111fc4a /src/isl | |
parent | 4d68c477ad29bc39794eb5f3e5f0886129c6c9c5 (diff) |
isl: Assert that alignments are not 0 for isl_align
Signed-off-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/isl')
-rw-r--r-- | src/isl/isl_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/isl/isl_priv.h b/src/isl/isl_priv.h index 1c9343a7d1f..b399e0f8116 100644 --- a/src/isl/isl_priv.h +++ b/src/isl/isl_priv.h @@ -67,7 +67,7 @@ isl_is_aligned(uintmax_t n, uintmax_t a) static inline uintmax_t isl_align(uintmax_t n, uintmax_t a) { - assert(isl_is_pow2(a)); + assert(a != 0 && isl_is_pow2(a)); return (n + a - 1) & ~(a - 1); } |