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

LSLKeyTest
UbitUmarov 2016-08-13 00:16:50 +01:00
parent 09832edadf
commit b64f25e631
1 changed files with 2 additions and 1 deletions

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;
}