add a missing cast to ulong in RegionGridLocToHandle (mantis: 7994)

This commit is contained in:
UbitUmarov
2016-08-13 00:16:50 +01:00
parent 09832edadf
commit b64f25e631

View File

@@ -382,7 +382,8 @@ namespace OpenSim.Framework
public static ulong RegionGridLocToHandle(uint X, uint Y)
{
ulong handle = X << 40; // shift to higher half and mult by 256)
ulong handle = X;
handle <<= 40; // shift to higher half and mult by 256)
handle |= (Y << 8); // mult by 256)
return handle;
}