summaryrefslogtreecommitdiff
path: root/src/cos_object.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-01-28 23:58:22 +0000
committerVincent Sanders <vince@kyllikki.org>2018-01-28 23:58:22 +0000
commit887175cabfbf3cea833583834937eadf9654e07a (patch)
tree341054a3d1a48528b3c7737a31c7b84c0571037a /src/cos_object.h
parent81543d2b980bf89c1797bf8f65e195f3a1f70414 (diff)
downloadlibnspdf-887175cabfbf3cea833583834937eadf9654e07a.tar.gz
libnspdf-887175cabfbf3cea833583834937eadf9654e07a.tar.bz2
fix bug when content conversion has already been performed
when content stream had already been converted instead of skipping the entire conversion and returning the previously converted content half teh conversion was performed a second time generating utter garbage and crashes. Additionally add a object dump debug helper
Diffstat (limited to 'src/cos_object.h')
-rw-r--r--src/cos_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cos_object.h b/src/cos_object.h
index 56c2179..79a1c8d 100644
--- a/src/cos_object.h
+++ b/src/cos_object.h
@@ -89,7 +89,7 @@ struct cos_content {
};
struct cos_object {
- int type;
+ enum cos_type type;
union {
/** boolean */
bool b;