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
8 * be found in the AUTHORS file in the root of the source tree.8 * be found in the AUTHORS file in the root of the source tree.
9 */9 */
10 10
11#include <cstdint>
11#include <new>12#include <new>
12 13
13#include "test/codec_factory.h"14#include "test/codec_factory.h"
@@ -20,7 +21,7 @@ · 6 unmodified lines
20namespace {21namespace {
21 22
22constexpr int kModelMagicNumber = 51396;23constexpr int kModelMagicNumber = 51396;
23constexpr unsigned int PrivMagicNumber = 5566;24constexpr uintptr_t PrivMagicNumber = 5566;
24constexpr int kFrameNum = 5;25constexpr int kFrameNum = 5;
25constexpr int kLosslessCodingIndex = 2;26constexpr int kLosslessCodingIndex = 2;
26 27

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