diff options
author | Gert Wollny <[email protected]> | 2017-11-16 16:09:56 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-11-17 09:27:57 -0700 |
commit | c7ebf9579701280fa2980b42f0b70e93f3177d5b (patch) | |
tree | 9736ff61167d23c91fe497ad5a47326db11e485c /src/gallium/auxiliary/util | |
parent | 537d04615d4e4c41ba4959445d8bd1bd22763d50 (diff) |
gallium/aux/util/u_async_debug.c: Fix -Wtype-limits warning.
Use size_t instread of unsigned for new_max. realloc later expects
size_t as parameter anyway.
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_async_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_async_debug.c b/src/gallium/auxiliary/util/u_async_debug.c index 13791a578bf..04faa6850e7 100644 --- a/src/gallium/auxiliary/util/u_async_debug.c +++ b/src/gallium/auxiliary/util/u_async_debug.c @@ -46,7 +46,7 @@ u_async_debug_message(void *data, unsigned *id, enum pipe_debug_type type, simple_mtx_lock(&adbg->lock); if (adbg->count >= adbg->max) { - unsigned new_max = MAX2(16, adbg->max * 2); + size_t new_max = MAX2(16, adbg->max * 2); if (new_max < adbg->max || new_max > SIZE_MAX / sizeof(*adbg->messages)) { |