fix a silly bug and an incorrect interpretation of the old code

This commit is contained in:
Bill Currie 2001-04-02 18:10:43 +00:00
parent 0e68cf838d
commit f517dc6ce6

View file

@ -50,7 +50,7 @@ vector_imm_get_key (void *_def, void *unused)
def_t *def = (def_t*)_def;
static char rep[60];
sprintf (rep, "\001vector:%08X\001%08X\001%08X\001",
G_INT(def->ofs), G_INT(def->ofs+1), G_INT(def->ofs+1));
G_INT(def->ofs), G_INT(def->ofs+1), G_INT(def->ofs+2));
return rep;
}
@ -115,17 +115,6 @@ PR_ParseImmediate (void)
Hash_Add (tab, cn);
if (pr_immediate_type == &type_vector) {
int i;
for (i = 0; i < 3; i++) {
def_t *d = PR_NewDef (&type_float, "IMMEDIATE", 0);
d->initialized = 1;
d->ofs = cn->ofs + i;
Hash_Add (float_imm_defs, d);
}
}
PR_Lex ();
return cn;