Skip to content

Commit 8133c36

Browse files
committed
Use %ld for DWORD, rather than a static cast
1 parent 4ee1be1 commit 8133c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Host/windows/MainLoopWindows.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ MainLoopWindows::RegisterReadObject(const IOObjectSP &object_sp,
235235
} else {
236236
DWORD file_type = GetFileType(waitable_handle);
237237
if (file_type != FILE_TYPE_PIPE) {
238-
error = Status::FromErrorStringWithFormat("Unsupported file type %d",
239-
static_cast<int>(file_type));
238+
error = Status::FromErrorStringWithFormat("Unsupported file type %ld",
239+
file_type);
240240
return nullptr;
241241
}
242242

0 commit comments

Comments
 (0)