Simplify code.

llvm-svn: 174807
This commit is contained in:
Jakub Staszak 2013-02-09 13:29:31 +00:00
parent ba3189bc0a
commit bef117fed5
1 changed files with 1 additions and 2 deletions

View File

@ -207,8 +207,7 @@ public:
/// emitString - This callback is invoked when a String needs to be /// emitString - This callback is invoked when a String needs to be
/// written to the output stream. /// written to the output stream.
void emitString(const std::string &String) { void emitString(const std::string &String) {
for (unsigned i = 0, N = static_cast<unsigned>(String.size()); for (size_t i = 0, N = String.size(); i < N; ++i) {
i < N; ++i) {
uint8_t C = String[i]; uint8_t C = String[i];
emitByte(C); emitByte(C);
} }