summaryrefslogtreecommitdiff
path: root/lib/common/makeexception.pl.in
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2013-09-28 23:40:14 +0000
committerChris Wilson <chris+github@qwirx.com>2013-09-28 23:40:14 +0000
commitcb0e1cdf97118aed6526f8ba78c79175aa7d2b67 (patch)
treedc38a71a7bebcebce132133a8d37300f587c633c /lib/common/makeexception.pl.in
parent98d34c07cd5969d5250159a87856a58cdc00f18e (diff)
mSubType is unsigned, so clang complains that it can't be less than zero.
Diffstat (limited to 'lib/common/makeexception.pl.in')
-rwxr-xr-xlib/common/makeexception.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/makeexception.pl.in b/lib/common/makeexception.pl.in
index 76b9b02b..b1b3a8ac 100755
--- a/lib/common/makeexception.pl.in
+++ b/lib/common/makeexception.pl.in
@@ -191,7 +191,7 @@ unsigned int ${class}Exception::GetSubType() const throw()
const char *${class}Exception::what() const throw()
{
#ifdef EXCEPTION_CODENAMES_EXTENDED
- if(mSubType < 0 || mSubType > (sizeof(whats) / sizeof(whats[0])))
+ if(mSubType > (sizeof(whats) / sizeof(whats[0])))
{
return "${class}";
}