From b6f50851facc221af55c2201899b11a01d5ce3a4 Mon Sep 17 00:00:00 2001 From: det Date: Sat, 21 Jun 2008 20:58:57 +0000 Subject: [PATCH] fix memory requirement calculation git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4949 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/ymage/ymageMatrix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/ymage/ymageMatrix.java b/source/de/anomic/ymage/ymageMatrix.java index c4ac70d18..552395c1c 100644 --- a/source/de/anomic/ymage/ymageMatrix.java +++ b/source/de/anomic/ymage/ymageMatrix.java @@ -75,7 +75,7 @@ public class ymageMatrix { } public ymageMatrix(int width, int height, byte drawMode, long backgroundColor) { - if (!(serverMemory.request(1024 * 1024 + 3 * width * height, false))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); + if (!(serverMemory.request(1024L * 1024L + 3 * width * height, false))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); this.width = width; this.height = height; this.backgroundCol = backgroundColor;