mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
fix error check in assert
llvm-svn: 154971
This commit is contained in:
parent
1674d0c68d
commit
ab055545e1
@ -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…
Reference in New Issue
Block a user