BERT-JS icon indicating copy to clipboard operation
BERT-JS copied to clipboard

encoding/decoding numbers from 129 to 255 is broken

Open yrashk opened this issue 14 years ago • 1 comments

Bert.decode(Bert.encode(129))
-127
Bert.decode(Bert.encode(255))
-1

yrashk avatar Oct 26 '12 23:10 yrashk

Confirm, I've just run into it. I guess it's here, not sure how to fix it: https://github.com/rustyio/BERT-JS/blob/master/bert.js#L403

oruen avatar Nov 18 '12 20:11 oruen