Mesa (master): util: Use size_t (for x86_64).

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Mar 25 21:02:00 UTC 2009


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Mar 25 20:58:53 2009 +0000

util: Use size_t (for x86_64).

---

 src/gallium/auxiliary/util/u_string.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h
index 08c89bb..cc7992d 100644
--- a/src/gallium/auxiliary/util/u_string.h
+++ b/src/gallium/auxiliary/util/u_string.h
@@ -130,7 +130,7 @@ static INLINE char *
 util_strstr(const char *haystack, const char *needle)
 {
    const char *p = haystack;
-   int len = strlen(needle);
+   size_t len = strlen(needle);
 
    for (; (p = util_strchr(p, *needle)) != 0; p++) {
       if (util_strncmp(p, needle, len) == 0) {




More information about the mesa-commit mailing list