From b64f25e631a0ec5681ddff050dc9bead5e0a7c8b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 13 Aug 2016 00:16:50 +0100 Subject: add a missing cast to ulong in RegionGridLocToHandle (mantis: 7994) --- OpenSim/Framework/Util.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/Util.cs') diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 5250d30..96b91ff 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -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; } -- cgit v1.1