diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2014-11-14 14:24:58 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2014-11-14 14:24:58 -0500 |
commit | e13259ae7aba80ea017c1d82a4520025f9e41335 (patch) | |
tree | bc4bfece5860f2c2bb9b10f2697391e7703d2916 /indra/llcorehttp | |
parent | b30c8ed9c5e36dde628b9e35eeb3898cf8e6b5d0 (diff) |
Remove a couple tests for unsigned long < 0.
clang correctly notes that such tests add nothing to the runtime behavior of a
program. Unfortunately, clang notes that in the form of a compile error.
Diffstat (limited to 'indra/llcorehttp')
-rwxr-xr-x | indra/llcorehttp/examples/http_texture_load.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcorehttp/examples/http_texture_load.cpp b/indra/llcorehttp/examples/http_texture_load.cpp index b76c874557..9d9631b980 100755 --- a/indra/llcorehttp/examples/http_texture_load.cpp +++ b/indra/llcorehttp/examples/http_texture_load.cpp @@ -212,7 +212,7 @@ int main(int argc, char** argv) char * end; value = strtoul(optarg, &end, 10); - if (value < 0 || value > 100 || *end != '\0') + if (value > 100 || *end != '\0') { usage(std::cerr); return 1; @@ -227,7 +227,7 @@ int main(int argc, char** argv) char * end; value = strtoul(optarg, &end, 10); - if (value < 0 || value > 3 || *end != '\0') + if (value > 3 || *end != '\0') { usage(std::cerr); return 1; |