From: Seth Cantrell Date: Wed, 18 Apr 2012 00:40:23 +0000 (+0000) Subject: fix error check in assert X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=575fcb38de5ef0b37cff1c3d5c18cbc34edb6af1;p=oota-llvm.git fix error check in assert git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154971 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/LocaleXlocale.inc b/lib/Support/LocaleXlocale.inc index c3f3e4e092c..f595e7c582c 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 ws(size);