Skip to content

Commit

Permalink
Support U tag for signed 16bit field values
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Nov 24, 2024
1 parent cddd4a8 commit e7a5e24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ function decodeFields(slice) {
case 'l':
val = ints.readInt64BE(slice, offset); offset += 8;
break;
case 'U':
case 's':
val = slice.readInt16BE(offset); offset += 2;
break;
Expand Down

0 comments on commit e7a5e24

Please sign in to comment.