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)
|
||||
{
|
||||
byte[] resultbytes = Utils.UIntToBytes(uIntValue);
|
||||
if (BitConverter.IsLittleEndian)
|
||||
Array.Reverse(resultbytes);
|
||||
|
||||
return resultbytes;
|
||||
byte[] result = new byte[4];
|
||||
Utils.UIntToBytesBig(uIntValue, result, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static OSD buildEvent(string eventName, OSD eventBody)
|
||||
|
|
Loading…
Reference in New Issue