diff options
Diffstat (limited to 'lib/intel_allocator_random.c')
-rw-r--r-- | lib/intel_allocator_random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_allocator_random.c b/lib/intel_allocator_random.c index 9e314261..d22f8176 100644 --- a/lib/intel_allocator_random.c +++ b/lib/intel_allocator_random.c @@ -180,7 +180,7 @@ intel_allocator_random_create(int fd, uint64_t start, uint64_t end) igt_assert(ial->priv); ialr->prng = (uint32_t) to_user_pointer(ial); - start = max(start, BIAS); + start = max_t(uint64_t, start, BIAS); igt_assert(start < end); ialr->start = start; ialr->end = end; |