Skip to content

Commit 9de6ce8

Browse files
committed
resolve clang issue
1 parent 0984d76 commit 9de6ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/test/framework/hardware_device_compatibility_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ TEST(GetHardwareDevicesCapiTest, GetHardwareDevices_InvalidArguments_ArrayTooSma
327327
ASSERT_GT(num_devices, 0u);
328328

329329
// Try to get devices with an undersized array (pass a valid pointer but claim size is 0)
330-
std::vector<const OrtHardwareDevice*> devices(1); // Allocate at least 1 element to avoid nullptr
330+
std::vector<const OrtHardwareDevice*> devices(1); // Allocate at least 1 element to avoid nullptr
331331
OrtStatus* st = api->GetHardwareDevices(env, devices.data(), 0); // But claim size is 0
332332
ASSERT_NE(st, nullptr);
333333
EXPECT_EQ(api->GetErrorCode(st), ORT_INVALID_ARGUMENT);

0 commit comments

Comments
 (0)