From 4cfe905a9b5dd2d37cf63ed2d3a262fd9fb378a3 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 2 Dec 2014 17:38:12 -0500 Subject: [PATCH] freedreno: fix signed vs unsigned lols Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h index 5508514194e..0abc53f6a8b 100644 --- a/src/gallium/drivers/freedreno/freedreno_util.h +++ b/src/gallium/drivers/freedreno/freedreno_util.h @@ -252,7 +252,7 @@ static inline uint32_t env2u(const char *envvar) { char *str = getenv(envvar); if (str) - return strtol(str, NULL, 0); + return strtoul(str, NULL, 0); return 0; } -- 2.30.2