freedreno: fix signed vs unsigned lols
authorRob Clark <robclark@freedesktop.org>
Tue, 2 Dec 2014 22:38:12 +0000 (17:38 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 3 Dec 2014 14:22:05 +0000 (09:22 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_util.h

index 5508514194e74e972eb11aa96770883dddf91467..0abc53f6a8b2dfd74463be87ae6c8014378df854 100644 (file)
@@ -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;
 }