diff options
author | UbitUmarov | 2018-01-21 16:40:58 +0000 |
---|---|---|
committer | UbitUmarov | 2018-01-21 16:40:58 +0000 |
commit | cb5a7246a26afd03f405c316520a72c0268fbdf2 (patch) | |
tree | 7a10ce77b03f069858c2c42b51cfed5195bac0f1 /OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |
parent | change version numbers back to 0.9.1.0 (diff) | |
download | opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.zip opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.gz opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.bz2 opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.xz |
cosmetics (or not)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs index 461f776..52cfd48 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |||
@@ -43,16 +43,16 @@ namespace OpenSim.Region.ClientStack.Linden | |||
43 | private static byte[] ulongToByteArray(ulong uLongValue) | 43 | private static byte[] ulongToByteArray(ulong uLongValue) |
44 | { | 44 | { |
45 | // Reverse endianness of RegionHandle | 45 | // Reverse endianness of RegionHandle |
46 | return new byte[] | 46 | return new byte[8] |
47 | { | 47 | { |
48 | (byte)((uLongValue >> 56) % 256), | 48 | (byte)((uLongValue >> 56) & 0xff), |
49 | (byte)((uLongValue >> 48) % 256), | 49 | (byte)((uLongValue >> 48) & 0xff), |
50 | (byte)((uLongValue >> 40) % 256), | 50 | (byte)((uLongValue >> 40) & 0xff), |
51 | (byte)((uLongValue >> 32) % 256), | 51 | (byte)((uLongValue >> 32) & 0xff), |
52 | (byte)((uLongValue >> 24) % 256), | 52 | (byte)((uLongValue >> 24) & 0xff), |
53 | (byte)((uLongValue >> 16) % 256), | 53 | (byte)((uLongValue >> 16) & 0xff), |
54 | (byte)((uLongValue >> 8) % 256), | 54 | (byte)((uLongValue >> 8) & 0xff), |
55 | (byte)(uLongValue % 256) | 55 | (byte)(uLongValue & 0xff) |
56 | }; | 56 | }; |
57 | } | 57 | } |
58 | 58 | ||