diff options
author | Karl Schultz <[email protected]> | 2003-09-18 15:14:10 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2003-09-18 15:14:10 +0000 |
commit | df8d337eec9b9f6f1d6ed0b4a7044b4f4420c52b (patch) | |
tree | b9a0b26cc589758e68ddb0801d6b9ca1e7dd1b47 /src/mesa/main/program.c | |
parent | 65f605849af1a14eaa79dab6c9d80575d5c85db0 (diff) |
Add casts to prevent signed/unsigned compare compiler warnings.
Diffstat (limited to 'src/mesa/main/program.c')
-rw-r--r-- | src/mesa/main/program.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 0d1a53c7616..8cc5f6885a4 100644 --- a/src/mesa/main/program.c +++ b/src/mesa/main/program.c @@ -363,7 +363,7 @@ _mesa_lookup_parameter_value(struct program_parameter_list *paramList, /* name is not null-terminated, use nameLen */ for (i = 0; i < paramList->NumParameters; i++) { if (_mesa_strncmp(paramList->Parameters[i].Name, name, nameLen) == 0 - && _mesa_strlen(paramList->Parameters[i].Name) == nameLen) + && _mesa_strlen(paramList->Parameters[i].Name) == (size_t)nameLen) return paramList->Parameters[i].Values; } } @@ -392,7 +392,7 @@ _mesa_lookup_parameter_index(struct program_parameter_list *paramList, /* name is not null-terminated, use nameLen */ for (i = 0; i < (GLint) paramList->NumParameters; i++) { if (_mesa_strncmp(paramList->Parameters[i].Name, name, nameLen) == 0 - && _mesa_strlen(paramList->Parameters[i].Name) == nameLen) + && _mesa_strlen(paramList->Parameters[i].Name) == (size_t)nameLen) return i; } } |