diff options
author | Javier <dev.git@javispedro.com> | 2015-06-15 15:41:05 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-15 15:41:05 +0200 |
commit | 08fbafb85b54adbbdfb12b06155e6d330fec9bb7 (patch) | |
tree | 93252d74c58f17a2201902ac3ca3f5ff2be37873 /stfreader.cc | |
parent | 16158add8ffeb1f38855c3c01dafb436d6e8d8f1 (diff) | |
download | scribiu-08fbafb85b54adbbdfb12b06155e6d330fec9bb7.tar.gz scribiu-08fbafb85b54adbbdfb12b06155e6d330fec9bb7.zip |
fix missing sign extension
Diffstat (limited to 'stfreader.cc')
-rw-r--r-- | stfreader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stfreader.cc b/stfreader.cc index 7d78635..09967cc 100644 --- a/stfreader.cc +++ b/stfreader.cc @@ -130,8 +130,8 @@ bool StfReader::parseV1(BitReader& br) pa = p1 - p0; } else { do_delta = true; - delta.setX(br.readBits(8)); - delta.setY(br.readBits(8)); + delta.setX(br.readSignedBits(8)); + delta.setY(br.readSignedBits(8)); } } else { do_delta = true; |