aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-04-18 00:40:23 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-04-18 00:40:23 +0000
commit575fcb38de5ef0b37cff1c3d5c18cbc34edb6af1 (patch)
treee04f6c090936dc6c6609aa1ea57c23cc6f1f5425
parent41c3e9a326979960c83fc48d21b54fb14d8d216c (diff)
fix error check in assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154971 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/LocaleXlocale.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/LocaleXlocale.inc b/lib/Support/LocaleXlocale.inc
index c3f3e4e092..f595e7c582 100644
--- a/lib/Support/LocaleXlocale.inc
+++ b/lib/Support/LocaleXlocale.inc
@@ -21,7 +21,7 @@ namespace {
assert(s.size()==strlen(s.c_str()));
size_t size = mbstowcs_l(NULL,s.c_str(),0,l);
- assert(size>=0);
+ assert(size!=(size_t)-1);
if (size==0)
return 0;
llvm::SmallVector<wchar_t,200> ws(size);