From: Rob Clark Date: Tue, 2 Dec 2014 22:38:12 +0000 (-0500) Subject: freedreno: fix signed vs unsigned lols X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cfe905a9b5dd2d37cf63ed2d3a262fd9fb378a3;p=mesa.git freedreno: fix signed vs unsigned lols Signed-off-by: Rob Clark --- 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; }