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