Skip to content

Commit 1d96560

Browse files
committed
c++14 fix
1 parent e97e31d commit 1d96560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Amiga/Graphics_Amiga.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ sImage cGraphics_Amiga::DecodeIFF(const std::string& pFilename) {
607607

608608
case 'CMAP': {
609609
size_t Colors = Size / 3;
610-
size_t ColorsToRead = std::min(Colors, std::size(Result.mPalette));
610+
size_t ColorsToRead = std::min<size_t>(Colors,sizeof(Result.mPalette) / sizeof(Result.mPalette[0]));
611611

612612
for (size_t i = 0; i < ColorsToRead && FileSize >= 3; ++i) {
613613
int16 d0 = (int16)*DataPtr++;

0 commit comments

Comments
 (0)