mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 16:35:10 +00:00
fix error check in assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41c3e9a326
commit
575fcb38de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user