projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c3e9a
)
fix error check in assert
author
Seth Cantrell
<seth.cantrell@gmail.com>
Wed, 18 Apr 2012 00:40:23 +0000
(
00:40
+0000)
committer
Seth Cantrell
<seth.cantrell@gmail.com>
Wed, 18 Apr 2012 00:40:23 +0000
(
00:40
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154971
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/LocaleXlocale.inc
patch
|
blob
|
history
diff --git
a/lib/Support/LocaleXlocale.inc
b/lib/Support/LocaleXlocale.inc
index c3f3e4e092c3393bd640e4c90f0e5e059a1387d8..f595e7c582cacf3de96946cddd50a045bf7235cc 100644
(file)
--- 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);