From 588dede2a2970477d59e333e97fb9ace4ca0b9e8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 20 Jul 2021 16:03:35 +0300 Subject: [PATCH] ref_soft: fix pointer-to-int casts --- ref_soft/r_edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref_soft/r_edge.c b/ref_soft/r_edge.c index aebabecf..2a09ffb8 100644 --- a/ref_soft/r_edge.c +++ b/ref_soft/r_edge.c @@ -1250,7 +1250,7 @@ void D_DrawflatSurfaces (void) // make a stable color for each surface by taking the low // bits of the msurface pointer - D_FlatFillSurface (s, (int)s->msurf & 0xFFFF); + D_FlatFillSurface (s, (uintptr_t)s->msurf & 0xFFFF); D_DrawZSpans (s->spans); } }