In EventQueueHelper.uintToByteArray, fetch big end-ian bytes directly from libomv rather than little endian then swapping
This avoids a problem with failing to swap on big-endian machines. This addresses http://opensimulator.org/mantis/view.php?id=4849 Thanks to Valy- for pointing this out and submitting a suggestion patchprebuild-update
parent
fcc83f2305
commit
1463691cb6
|
@ -55,11 +55,9 @@ namespace OpenSim.Region.CoreModules.Framework.EventQueue
|
||||||
|
|
||||||
private static byte[] uintToByteArray(uint uIntValue)
|
private static byte[] uintToByteArray(uint uIntValue)
|
||||||
{
|
{
|
||||||
byte[] resultbytes = Utils.UIntToBytes(uIntValue);
|
byte[] result = new byte[4];
|
||||||
if (BitConverter.IsLittleEndian)
|
Utils.UIntToBytesBig(uIntValue, result, 0);
|
||||||
Array.Reverse(resultbytes);
|
return result;
|
||||||
|
|
||||||
return resultbytes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static OSD buildEvent(string eventName, OSD eventBody)
|
public static OSD buildEvent(string eventName, OSD eventBody)
|
||||||
|
|
Loading…
Reference in New Issue