diff --git a/srcpkgs/teeworlds/patches/7dc19230d04a895cfc1085cf5b0e62326d6e2cd3.patch b/srcpkgs/teeworlds/patches/7dc19230d04a895cfc1085cf5b0e62326d6e2cd3.patch new file mode 100644 index 0000000000..3bcc7cb081 --- /dev/null +++ b/srcpkgs/teeworlds/patches/7dc19230d04a895cfc1085cf5b0e62326d6e2cd3.patch @@ -0,0 +1,24 @@ +This fixes big endian builds in general. + +From 7dc19230d04a895cfc1085cf5b0e62326d6e2cd3 Mon Sep 17 00:00:00 2001 +From: Jordy Ruiz +Date: Fri, 26 Apr 2019 17:55:03 +0200 +Subject: [PATCH] Fix s390x: explicit conversion to unsigned + +--- + src/engine/shared/datafile.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/engine/shared/datafile.cpp b/src/engine/shared/datafile.cpp +index 676800c637..c4e809738e 100644 +--- src/engine/shared/datafile.cpp ++++ src/engine/shared/datafile.cpp +@@ -172,7 +172,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename, int + m_pDataFile = pTmpDataFile; + + #if defined(CONF_ARCH_ENDIAN_BIG) +- swap_endian(m_pDataFile->m_pData, sizeof(int), min(static_cast(Header.m_Swaplen), Size) / sizeof(int)); ++ swap_endian(m_pDataFile->m_pData, sizeof(int), min(static_cast(Header.m_Swaplen), static_cast(Size)) / sizeof(int)); + #endif + + //if(DEBUG)