Skip to content

Commit 265c475

Browse files
committed
fix(evernote): fix signed integer mismatch in Thrift version check
1 parent 10be25f commit 265c475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/app/api/tools/evernote/lib/thrift.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class ThriftReader {
107107
readMessageBegin(): { name: string; type: number; seqId: number } {
108108
const versionAndType = this.readI32()
109109
const version = versionAndType & 0xffff0000
110-
if (version !== THRIFT_VERSION_1) {
110+
if (version !== (THRIFT_VERSION_1 | 0)) {
111111
throw new Error(`Unsupported Thrift version: 0x${version.toString(16)}`)
112112
}
113113
const type = versionAndType & 0x000000ff

0 commit comments

Comments
 (0)