History

vp9_ext_ratectrl_test: use uintptr_t for void* value

this avoids a warning about differences in size between void* and unsigned int under msvc: vp9_ext_ratectrl_test.cc(40,3): warning C4312: 'reinterpret_cast': conversion from 'const unsigned int' to 'void *' of greater size

James Zern committed 5 years ago

Commit deef8951 parent d55cab41 file · +2 −1Browse files

Unified · Split

test/vp9_ext_ratectrl_test.cc+2−1
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 * be found in the AUTHORS file in the root of the source tree.
99 */
1010
11+#include <cstdint>
1112 #include <new>
1213
1314 #include "test/codec_factory.h"
@@ -20,7 +21,7 @@ · 6 unmodified lines
2021 namespace {
2122
2223 constexpr int kModelMagicNumber = 51396;
23−constexpr unsigned int PrivMagicNumber = 5566;
24+constexpr uintptr_t PrivMagicNumber = 5566;
2425 constexpr int kFrameNum = 5;
2526 constexpr int kLosslessCodingIndex = 2;
2627

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