GIT
/
REPO
/
FRED-BOY
Projects
/
odcread.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a188ef
)
Read NIL stores correctly
author
Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl>
Fri, 12 Aug 2011 16:32:50 +0000
(18:32 +0200)
committer
Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl>
Fri, 12 Aug 2011 16:32:50 +0000
(18:32 +0200)
reader.cc
patch
|
blob
|
history
diff --git
a/reader.cc
b/reader.cc
index 1f60ce8fe31041fda6ebb15c5f740ed5022bf474..f53e30a8e896035d8a769d2de4cf10b27c9e8d33 100644
(file)
--- a/
reader.cc
+++ b/
reader.cc
@@
-120,6
+120,14
@@
Store* Reader::readStore() {
// kind: SHORTCHAR; path: TypePath; type: TypeName;
// save: ReaderState;
Store *Reader::readNilStore() {
+ INTEGER comment = readInt();
+ std::streamoff next = readInt();
+ d_state->end = d_rider.tellg();
+ if (next > 0 || (next == 0 && comment % 2 == 1)) {
+ d_state->next = d_state->end + next;
+ } else {
+ d_state->next = 0;
+ }
return 0;
}
// IF kind = nil THEN
DEADSOFTWARE 2012-2025