From f7897aeceaf1f93c9547728ba13b2ed8aa805570 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Fri, 19 Jan 2024 10:05:02 -0800 Subject: [PATCH] fix build warnings for clang --- src/render/d3d11/render_d3d11.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/render/d3d11/render_d3d11.cpp b/src/render/d3d11/render_d3d11.cpp index facab6c3..5e5ae948 100644 --- a/src/render/d3d11/render_d3d11.cpp +++ b/src/render/d3d11/render_d3d11.cpp @@ -176,7 +176,7 @@ r_init(CmdLine *cmdln) if(FAILED(error)) { char buffer[256] = {0}; - raddbg_snprintf(buffer, sizeof(buffer), "D3D11 device creation failure (%x). The process is terminating.", error); + raddbg_snprintf(buffer, sizeof(buffer), "D3D11 device creation failure (%lx). The process is terminating.", error); os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer)); os_exit_process(1); } @@ -483,7 +483,7 @@ r_window_equip(OS_Handle handle) if(FAILED(error)) { char buffer[256] = {0}; - raddbg_snprintf(buffer, sizeof(buffer), "DXGI swap chain creation failure (%x). The process is terminating.", error); + raddbg_snprintf(buffer, sizeof(buffer), "DXGI swap chain creation failure (%lx). The process is terminating.", error); os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer)); os_exit_process(1); } @@ -998,7 +998,7 @@ r_window_end_frame(OS_Handle window, R_Handle window_equip) if(FAILED(error)) { char buffer[256] = {0}; - raddbg_snprintf(buffer, sizeof(buffer), "D3D11 present failure (%x). The process is terminating.", error); + raddbg_snprintf(buffer, sizeof(buffer), "D3D11 present failure (%lx). The process is terminating.", error); os_graphical_message(1, str8_lit("Fatal Error"), str8_cstring(buffer)); os_exit_process(1); }