Fixed a bunch more errors; Seek doesn't work

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dustin Mitchell 2000-01-19 05:48:41 +00:00
commit 2fe7bbea07

View file

@ -757,8 +757,6 @@ Super_chop(DOH *so) {
int len, tag, offset; int len, tag, offset;
Super *s = (Super *) so; Super *s = (Super *) so;
/* check this one for obiwans */
s->hashkey = -1; s->hashkey = -1;
s->pbi = 0; s->pbi = 0;
@ -775,9 +773,8 @@ Super_chop(DOH *so) {
tag = Super_get_tag(s, len, &offset); tag = Super_get_tag(s, len, &offset);
/* Delete any relevant tags... */ /* Delete any relevant tags... */
while (--s->numtags > tag) while (s->numtags > tag + 1)
Delete(s->tags[s->numtags].filename); Super_delete_tag(s, --s->numtags);
s->numtags++;
s->tags[tag].length = offset; s->tags[tag].length = offset;
s->len = len; s->len = len;