Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: rlz/lib/string_utils.cc

Issue 11434029: Fix tautological compare in rlz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rlz/lib/string_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/string_utils.cc
diff --git a/rlz/lib/string_utils.cc b/rlz/lib/string_utils.cc
index 50206a8e550916652bb1da34991814c56c7aa63f..87988022e41ad4ed1e7fd2e25a443ee0c15c613f 100644
--- a/rlz/lib/string_utils.cc
+++ b/rlz/lib/string_utils.cc
@@ -10,8 +10,8 @@
namespace rlz_lib {
-bool IsAscii(char letter) {
- return (letter >= 0x0 && letter < 0x80);
+bool IsAscii(unsigned char letter) {
+ return letter < 0x80;
}
bool GetHexValue(char letter, int* value) {
« no previous file with comments | « rlz/lib/string_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698