Here you can find the source of int2long(int i)
private static long int2long(int i)
//package com.java2s; //License from project: Apache License public class Main { private static long int2long(int i) { long l = i & 0x7fffffffL; if (i < 0) { l |= 0x080000000L;//from w w w . ja va 2s .c o m } return l; } }