From cf8707bf2ede99d8543d806355eee088bdc1376b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 6 Aug 2022 01:21:08 +0200 Subject: Use typedefs when interacting with Win32 API. It's not like they're ever going to change the definition of WORD (knock on wood) -- but I guess it's proper to use them as if their definitions might change. --- c/debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/debug.cpp') diff --git a/c/debug.cpp b/c/debug.cpp index 35f8933..6b5baff 100644 --- a/c/debug.cpp +++ b/c/debug.cpp @@ -66,9 +66,9 @@ Benchmark::~Benchmark() } } -const char* WmName(const unsigned uMsg) +const char* WmName(const UINT uMsg) { - static const unsigned vKey[] = { + static const UINT vKey[] = { 0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -- cgit v1.2.3