summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-12-02 17:38:12 -0500
committerRob Clark <[email protected]>2014-12-03 09:22:05 -0500
commit4cfe905a9b5dd2d37cf63ed2d3a262fd9fb378a3 (patch)
tree343fb49c4fa612fe9ba5c40a52cf80664cc20b2f /src
parentef7e0b39a24966526b102643523feac765771842 (diff)
freedreno: fix signed vs unsigned lols
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_util.h2
1 files changed, 1 insertions, 1 deletions
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;
}