Member Controls

Developers > Patch to make binary fields pad left instead of right
EchoLink to postposted: Sat Jan 05, 2008 10:39 am
Avator for Echo

Member since:
 2005-03-06
From:
 Melbourne, Australia
Posts:
 83

This is a very minor change for a bug which is most visible in the "RAW" tab of the OBJD plugin view. The translation to binary currently drops leading zeros then pads right with '0', with the result that 0x01, 0x02, 0x04, 0x80 etc all translate to b10000000. I just changed it to pad left instead.

 

Attached is the update version of PropertyUserTypes.cs, and a diff.txt specifying the (very, very) minor change.

ClipAttachments:
PropertyUserTypes.cs.zip (3.25 kb, 322 downloads)
 
Inge JonesLink to postposted: Sat Jan 05, 2008 10:49 am
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
That sounds a good one!  Do you have update rights on the project at sourceforge, or would you like Peter to apply this?
EchoLink to postposted: Sat Jan 05, 2008 11:00 am
Avator for Echo

Member since:
 2005-03-06
From:
 Melbourne, Australia
Posts:
 83
As far as I know, I don't have any rights on sourceforge except the standard download options. So if someone with rights can apply it I would be much obliged. :)
Inge JonesLink to postposted: Sat Jan 05, 2008 11:07 am
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
Ok I have heads-upped him.


viewthread, 0, 0, Patch-to-make-binary-fields-pad-left-instead-of-right