From: José Fonseca Date: Fri, 20 Apr 2012 05:09:07 +0000 (+0100) Subject: Eliminate unecessary casts. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=efe0870db5563461da7dae5c3850d864888d78f7 Eliminate unecessary casts. --- diff --git a/common/trace_parser.cpp b/common/trace_parser.cpp index 896bfd4..11ec229 100644 --- a/common/trace_parser.cpp +++ b/common/trace_parser.cpp @@ -734,7 +734,7 @@ Value *Parser::parse_blob(void) { size_t size = read_uint(); Blob *blob = new Blob(size); if (size) { - file->read(blob->buf, (unsigned)size); + file->read(blob->buf, size); } return blob; } @@ -784,7 +784,7 @@ const char * Parser::read_string(void) { size_t len = read_uint(); char * value = new char[len + 1]; if (len) { - file->read(value, (unsigned)len); + file->read(value, len); } value[len] = 0; #if TRACE_VERBOSE