diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/LocaleXlocale.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/LocaleXlocale.inc b/llvm/lib/Support/LocaleXlocale.inc index c3f3e4e092c..f595e7c582c 100644 --- a/llvm/lib/Support/LocaleXlocale.inc +++ b/llvm/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); |