From 001939ca8e2c582650d3cd77d0cd0eabffc50ed2 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 08:57:55 +0100 Subject: style: replace C++ casts with C-style casts Converts all static_cast<>, reinterpret_cast<> to C-style casts per CODING_STYLE.md guidelines. - Modified 12 files across gpu, 3d, util, tests, and tools - All builds passing, 34/34 tests passing - No functional changes, pure style cleanup Co-Authored-By: Claude Sonnet 4.5 --- src/tests/common/offscreen_render_target.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/common/offscreen_render_target.cc') diff --git a/src/tests/common/offscreen_render_target.cc b/src/tests/common/offscreen_render_target.cc index 33f0ae0..2b0a43b 100644 --- a/src/tests/common/offscreen_render_target.cc +++ b/src/tests/common/offscreen_render_target.cc @@ -20,7 +20,7 @@ OffscreenRenderTarget::OffscreenRenderTarget(WGPUInstance instance, .usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_CopySrc | WGPUTextureUsage_TextureBinding, .dimension = WGPUTextureDimension_2D, - .size = {static_cast(width), static_cast(height), 1}, + .size = {(uint32_t)(width), (uint32_t)(height), 1}, .format = format, .mipLevelCount = 1, .sampleCount = 1, @@ -44,7 +44,7 @@ OffscreenRenderTarget::~OffscreenRenderTarget() { void OffscreenRenderTarget::map_callback(WGPUMapAsyncStatus status, void* userdata) { - MapState* state = static_cast(userdata); + MapState* state = (MapState*)(userdata); state->status = status; state->done = true; } -- cgit v1.2.3