diff --git a/src/tests/Interop/ObjectiveC/ObjectiveCMarshalAPI/NativeObjCMarshalTests.cpp b/src/tests/Interop/ObjectiveC/ObjectiveCMarshalAPI/NativeObjCMarshalTests.cpp index bfd4f16e07c885..5b6c16b30fd5fd 100644 --- a/src/tests/Interop/ObjectiveC/ObjectiveCMarshalAPI/NativeObjCMarshalTests.cpp +++ b/src/tests/Interop/ObjectiveC/ObjectiveCMarshalAPI/NativeObjCMarshalTests.cpp @@ -99,7 +99,7 @@ namespace [[noreturn]] void ThrowInt(void* cxt) { - int val = (int)cxt; + int val = (int)(size_t)cxt; throw val; }