History

Add casts when converting from size_t or std::streamsize to int

Martin Storsjö committed 11 years ago

Commit 96384bd1 parent af938a63 files · +5 −5Browse files

Showing the changes to test/api/decode_encode_test.cpp (1 of 3 files). Show all

Unified · Split

test/api/decode_encode_test.cpp+1−1
@@ -83,7 +83,7 @@ class DecodeEncodeTest : public ::testing::TestWithParam<DecodeEncodeFileParam>, · 82 unmodified lines
8383 break;
8484 }
8585 }
86− return buf_.PopFront (static_cast<uint8_t*> (ptr), len);
86+ return (int) buf_.PopFront (static_cast<uint8_t*> (ptr), len);
8787 }
8888
8989 protected:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t