# HG changeset patch # User Richard M. Stallman # Date 868689366 0 # Node ID a26b6aca56cadc0f449f5b80b67853d47232550f # Parent a2214718523511ac9fd0c108356e09409c10c397 (selection_data_to_lisp_data): Convert Fmake_vector and Faset arguments to Lisp_Integer. (clean_local_selection_data): Likewise. diff -r a22147185235 -r a26b6aca56ca src/xselect.c --- a/src/xselect.c Sat Jul 12 06:35:22 1997 +0000 +++ b/src/xselect.c Sat Jul 12 06:36:06 1997 +0000 @@ -1513,10 +1513,11 @@ return x_atom_to_symbol (dpyinfo, display, *((Atom *) data)); else { - Lisp_Object v = Fmake_vector (size / sizeof (Atom), 0); + Lisp_Object v = Fmake_vector (make_number (size / sizeof (Atom)), + make_number (0)); for (i = 0; i < size / sizeof (Atom); i++) - Faset (v, i, x_atom_to_symbol (dpyinfo, display, - ((Atom *) data) [i])); + Faset (v, make_number (i), + x_atom_to_symbol (dpyinfo, display, ((Atom *) data) [i])); return v; } } @@ -1536,22 +1537,22 @@ else if (format == 16) { int i; - Lisp_Object v = Fmake_vector (size / 4, 0); + Lisp_Object v = Fmake_vector (make_number (size / 4), make_number (0)); for (i = 0; i < size / 4; i++) { int j = (int) ((unsigned short *) data) [i]; - Faset (v, i, make_number (j)); + Faset (v, make_number (i), make_number (j)); } return v; } else { int i; - Lisp_Object v = Fmake_vector (size / 4, 0); + Lisp_Object v = Fmake_vector (make_number (size / 4), make_number (0)); for (i = 0; i < size / 4; i++) { unsigned long j = ((unsigned long *) data) [i]; - Faset (v, i, long_to_cons (j)); + Faset (v, make_number (i), long_to_cons (j)); } return v; } @@ -1796,7 +1797,7 @@ Lisp_Object copy; if (size == 1) return clean_local_selection_data (XVECTOR (obj)->contents [0]); - copy = Fmake_vector (size, Qnil); + copy = Fmake_vector (make_number (size), Qnil); for (i = 0; i < size; i++) XVECTOR (copy)->contents [i] = clean_local_selection_data (XVECTOR (obj)->contents [i]);