core: struct_set_: Oops typo.

* src/struct.c (struct_set_x_): Oops, remove indirection.
This commit is contained in:
Jan Nieuwenhuizen 2018-11-14 08:16:58 +01:00
parent 0be3bea141
commit 75655793d4
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -65,7 +65,7 @@ SCM
struct_set_x_ (SCM x, long i, SCM e)
{
assert (TYPE (x) == TSTRUCT);
assert (VALUE (i) < LENGTH (x));
assert (i < LENGTH (x));
g_cells[STRUCT (x)+i] = g_cells[vector_entry (e)];
return cell_unspecified;
}