Skip to content

Commit

Permalink
fix: Typo leading to uint16 to never be invalidated
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain GAGNAIRE committed Sep 17, 2018
1 parent 819d78e commit 9ed802c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function isInvalidValue(data, type) {
return data === 0xFF;
case 'sint16':
return data === 0x7FFF;
case 'unit16':
case 'uint16':
return data === 0xFFFF;
case 'sint32':
return data === 0x7FFFFFFF;
Expand Down
2 changes: 1 addition & 1 deletion src/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function isInvalidValue(data, type) {
case 'sint8': return data === 0x7F;
case 'uint8': return data === 0xFF;
case 'sint16': return data === 0x7FFF;
case 'unit16': return data === 0xFFFF;
case 'uint16': return data === 0xFFFF;
case 'sint32': return data === 0x7FFFFFFF;
case 'uint32': return data === 0xFFFFFFFF;
case 'string': return data === 0x00;
Expand Down

0 comments on commit 9ed802c

Please sign in to comment.