Skip to content

Commit d56604f

Browse files
lgritzscott-wilson
authored andcommitted
build: Fix warning on windows (AcademySoftwareFoundation#4272)
Signed-off-by: Larry Gritz <lg@larrygritz.com> Signed-off-by: Scott Wilson <scott@propersquid.com>
1 parent 98ddb75 commit d56604f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/paramlist_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ test_value_types()
206206

207207
// Test ptr
208208
{
209-
int* ptr = (int*)0xdeadbeef;
209+
int* ptr = (int*)intptr_t(0xdeadbeef);
210210
ParamValue p = make_pv("name", ptr);
211211
OIIO_CHECK_EQUAL(p.type(), TypePointer);
212212
OIIO_CHECK_EQUAL(p.get<int*>(), ptr);

0 commit comments

Comments
 (0)