Here you can find the source of correctMemoryValue(int memory)
public static long correctMemoryValue(int memory)
//package com.java2s; /*//from ww w. j a va 2s. co m * Copyright (C) 2010-2014 - Andreas Maier * CONRAD is developed as an Open Source project under the GNU General Public License (GPL). */ public class Main { public static long correctMemoryValue(int memory) { long mem = memory; if (mem < 0) { mem -= Integer.MIN_VALUE; mem += Integer.MAX_VALUE; } return mem; } }