mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
add a missing cast to ulong in RegionGridLocToHandle (mantis: 7994)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user