Skip to content

Commit

Permalink
Fix that corrects a mishandling of UInt64's.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrUnleaded authored and migueldeicaza committed Apr 6, 2011
1 parent 34fd94f commit c69b180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcs/class/corlib/Mono/DataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ public override void PutBytes (byte [] dest, int destIdx, ulong value)
fixed (byte *target = &dest [destIdx]){
byte *source = (byte *) &value;

for (int i = 0; i < 4; i++)
for (int i = 0; i < 8; i++)
target [i] = source [7-i];
}
}
Expand Down

0 comments on commit c69b180

Please sign in to comment.