aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CharacterSet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CharacterSet.h b/src/CharacterSet.h
index 4e8ffbdf6..9b8869635 100644
--- a/src/CharacterSet.h
+++ b/src/CharacterSet.h
@@ -53,6 +53,7 @@ public:
}
bool Contains(int val) const {
PLATFORM_ASSERT(val >= 0);
+ if (val < 0) return false;
return (val < size) ? bset[val] : valueAfter;
}
};