Open MangaD opened 8 years ago
On line 577 change: unsigned int len = str_.size(); to: unsigned int len = static_cast<unsigned int>(str_.size());
unsigned int len = str_.size();
unsigned int len = static_cast<unsigned int>(str_.size());
On line 580 change: unsigned int len = strlen(str); to: unsigned int len = (unsigned int) strlen(str);
unsigned int len = strlen(str);
unsigned int len = (unsigned int) strlen(str);
Helped me a lot, thanks man!
Make L577 auto len = static_cast<unsigned int>(str_.size()); since you're specifying the type anyway.
auto len = static_cast<unsigned int>(str_.size());
Didn't want to use C++11...
On line 577 change:
unsigned int len = str_.size();
to:unsigned int len = static_cast<unsigned int>(str_.size());
On line 580 change:
unsigned int len = strlen(str);
to:unsigned int len = (unsigned int) strlen(str);