Module: Mesa
Branch: master
Commit: 4cfe905a9b5dd2d37cf63ed2d3a262fd9fb378a3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4cfe905a9b5dd2d37cf63ed2d3a262fd9fb378a3

Author: Rob Clark <robcl...@freedesktop.org>
Date:   Tue Dec  2 17:38:12 2014 -0500

freedreno: fix signed vs unsigned lols

Signed-off-by: Rob Clark <robcl...@freedesktop.org>

---

 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 5508514..0abc53f 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;
 }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to