ide: fixed to compile

This commit is contained in:
Mirek Fidler 2022-05-14 22:13:20 +02:00
parent 6a86f2ac03
commit 77ca349de6

View file

@ -451,7 +451,7 @@ void IconDes::SaveUndo()
return;
Slot& c = Current();
Vector<ImageIml> undo = UnpackImlData(c.undo);
int maxn = minmax((single_mode ? 4000000 : 400000) / max(c.image.GetLength(), 1), 4, 128);
int maxn = minmax((single_mode ? 4000000 : 400000) / max((int)c.image.GetLength(), 1), 4, 128);
while(undo.GetCount() > maxn)
undo.Remove(0);
if(undo.GetCount() && undo.Top().image == c.image)