History

Move a conversion from size_t to int into one single place within BaseDecoderTest.cpp

Martin Storsjö committed 11 years ago

Commit 4f33b381 parent b83b1922 files · +3 −3Browse files

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

Unified · Split

test/api/BaseDecoderTest.cpp+2−2
@@ -70,13 +70,13 @@ void BaseDecoderTest::TearDown() { · 69 unmodified lines
7070 }
7171
7272
73−void BaseDecoderTest::DecodeFrame (const uint8_t* src, int sliceSize, Callback* cbk) {
73+void BaseDecoderTest::DecodeFrame (const uint8_t* src, size_t sliceSize, Callback* cbk) {
7474 uint8_t* data[3];
7575 SBufferInfo bufInfo;
7676 memset (data, 0, sizeof (data));
7777 memset (&bufInfo, 0, sizeof (SBufferInfo));
7878
79− DECODING_STATE rv = decoder_->DecodeFrame2 (src, sliceSize, data, &bufInfo);
79+ DECODING_STATE rv = decoder_->DecodeFrame2 (src, (int) sliceSize, data, &bufInfo);
8080 ASSERT_TRUE (rv == dsErrorFree);
8181
8282 if (bufInfo.iBufferStatus == 1 && cbk != NULL) {

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