From 0ee4ba95b3dd9bf32a2751ce03e2df6463444f49 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Thu, 16 Jan 2025 23:41:12 -0500 Subject: [PATCH] Replace old-style cast in Windows-only code with `static_cast` --- src/asm/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index aa8e1287..50b61288 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -64,7 +64,7 @@ static char *mapFile(int fd, std::string const &path, size_t) { } CloseHandle(file); } - return (char *)mappingAddr; + return static_cast(mappingAddr); } struct FileUnmapDeleter {