git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
52f0478
)
added more error handling in getTAG.
author
kramm
<kramm>
Sun, 16 May 2004 21:11:57 +0000
(21:11 +0000)
committer
kramm
<kramm>
Sun, 16 May 2004 21:11:57 +0000
(21:11 +0000)
lib/python/tag.c
patch
|
blob
|
history
diff --git
a/lib/python/tag.c
b/lib/python/tag.c
index
9a53b58
..
94294be
100644
(file)
--- a/
lib/python/tag.c
+++ b/
lib/python/tag.c
@@
-251,6
+251,9
@@
TAG* tag_getTAG(PyObject*self, TAG*prevTag, PyObject*tagmap)
}
//int newid = tagmap_obj2id(tag->internals.tagmap, obj);
int newid = tagmap_obj2id(tagmap, obj);
}
//int newid = tagmap_obj2id(tag->internals.tagmap, obj);
int newid = tagmap_obj2id(tagmap, obj);
+ if(newid<0) {
+ PyErr_SetString(PyExc_Exception, setError("Unknown object %08x", obj));return 0;
+ }
mylog(" %08x(%d) tag_getTAG: dependency %d) %d->%08x -> assigning(%08x) id %d", (int)self, self->ob_refcnt, i, id, obj, tagmap, newid);
PUT16(&t->data[positions[i]], newid);
}
mylog(" %08x(%d) tag_getTAG: dependency %d) %d->%08x -> assigning(%08x) id %d", (int)self, self->ob_refcnt, i, id, obj, tagmap, newid);
PUT16(&t->data[positions[i]], newid);
}