Skip to content

Commit

Permalink
fix: read byte as unsigned number (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulnorstrom authored Mar 12, 2021
1 parent bf92f43 commit 8795dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function readFieldValue(buffer: Buffer, column: ColumnDefinition, db: Dat
}

function readByte(buffer: Buffer): number {
return buffer.readInt8();
return buffer.readUInt8();
}

function readInteger(buffer: Buffer): number {
Expand Down

0 comments on commit 8795dd0

Please # to comment.