[fix] read and write unsigned bytes in SignalPdu#57
Conversation
|
Thank-you @ngjunsiang ! |
I couldn't find the other lines, then suddenly remembered I can browse the repository at the point the comment was made 😅 From the comment, the unaddressed lines are: Mapping them to the current commit: I'll push another commit to address these. |
fixing lines 3790, 3794, 3801, 3806
|
Thanks @ngjunsiang What do you think about the original comment about line 7141 and 7157? |
|
According to IEEE1278.1-2012, dataLength and samples should be 16-bit unsigned ints as well. I have pushed the changes. At this rate I can probably do a search for signed reads/writes to check possible bugs 😂 |
A quick search reveals most of the signed read/write methods of the input and output stream class are little-used; where they are used, it is primarily for padding. |
|
Ok then thank-you for checking. In that case I suggest we leave the scope of the changes as is. I'll do a quick review and then merge in a moment |
Fixes #46