Fix number of compile errors and warnings with GCC 14
[lsnes.git] / bsnes-patches / v085 / 0005-Fix-unserialization-of-64-bit-signed-integers.patch
blobd50d2474655b2e6971d7603ca611b3e9f6b0128c
1 From cdf2f46490f128308eb7f399d03530936ebeda0a Mon Sep 17 00:00:00 2001
2 From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
3 Date: Fri, 11 Nov 2011 03:05:48 +0200
4 Subject: [PATCH 05/27] Fix unserialization of 64-bit signed integers
6 ---
7 nall/serializer.hpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/nall/serializer.hpp b/nall/serializer.hpp
11 index ff2337ab..e6bc8fad 100755
12 --- a/nall/serializer.hpp
13 +++ b/nall/serializer.hpp
14 @@ -58,7 +58,7 @@ namespace nall {
15 for(unsigned n = 0; n < size; n++) idata[isize++] = value >> (n << 3);
16 } else if(imode == Load) {
17 value = 0;
18 - for(unsigned n = 0; n < size; n++) value |= idata[isize++] << (n << 3);
19 + for(unsigned n = 0; n < size; n++) value |= (unsigned long long)idata[isize++] << (n << 3);
20 } else if(imode == Size) {
21 isize += size;
23 --
24 2.15.0.rc1