From 0c20b547f453abfc7018dde24270fec448e60e6d Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 16 Oct 2016 20:26:02 +0100 Subject: [PATCH] Fix #4625: Guest/peep hover text not rendered on x64 build A recent regression where inline string sprites were changed to be treated as intptr rather than uint32. --- src/localisation/localisation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/localisation/localisation.c b/src/localisation/localisation.c index ba577051f9..e676b46879 100644 --- a/src/localisation/localisation.c +++ b/src/localisation/localisation.c @@ -1188,12 +1188,12 @@ static void format_string_code(unsigned int format_code, char **dest, size_t *si value = *((uint32*)*args); *args += 4; - format_handle_overflow(1 + sizeof(intptr_t)); + format_handle_overflow(1 + sizeof(uint32)); format_push_char_safe('\x17'); - *((intptr_t*)(*dest)) = value; - (*dest) += sizeof(intptr_t); - (*size) -= sizeof(intptr_t); + *((uint32*)(*dest)) = (uint32)value; + (*dest) += sizeof(uint32); + (*size) -= sizeof(uint32); break; } }