aboutsummaryrefslogtreecommitdiff
path: root/stfreader.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-15 15:41:05 +0200
committerJavier <dev.git@javispedro.com>2015-06-15 15:41:05 +0200
commit08fbafb85b54adbbdfb12b06155e6d330fec9bb7 (patch)
tree93252d74c58f17a2201902ac3ca3f5ff2be37873 /stfreader.cc
parent16158add8ffeb1f38855c3c01dafb436d6e8d8f1 (diff)
downloadscribiu-08fbafb85b54adbbdfb12b06155e6d330fec9bb7.tar.gz
scribiu-08fbafb85b54adbbdfb12b06155e6d330fec9bb7.zip
fix missing sign extension
Diffstat (limited to 'stfreader.cc')
-rw-r--r--stfreader.cc4
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;