remove some direct usages of pr.globals

This commit is contained in:
Bill Currie 2002-06-05 17:45:44 +00:00
parent e17604f9c2
commit 9474765e75
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ PR_GetDef (type_t *type, const char *name, def_t *scope, int *allocate)
}
if (type->type == ev_field) {
*(int *) &pr.globals[def->ofs] = pr.size_fields;
G_INT (def->ofs) = pr.size_fields;
if (type->aux_type->type == ev_vector) {
def_t *d;

View file

@ -225,7 +225,7 @@ WriteData (int crc)
progs.ofs_globals = ftell (h);
progs.numglobals = pr.num_globals;
for (i = 0; i < pr.num_globals; i++)
((int *) pr.globals)[i] = LittleLong (((int *) pr.globals)[i]);
G_INT (i) = LittleLong (G_INT (i));
SafeWrite (h, pr.globals, pr.num_globals * 4);
if (options.verbosity >= -1)