Commit bfe1a3f7 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(live_float_p): Check that p is not past the `floats' array,

now that `floats' is not the last element of the struct any more.
parent ee79d1aa
2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
* alloc.c (live_float_p): Check that p is not past the `floats' array,
now that `floats' is not the last element of the struct any more.
2003-07-06 Jason Rumney <jasonr@gnu.org>
* w32term.h (ClipboardSequence_Proc): New type.
......
......@@ -3468,6 +3468,7 @@ live_float_p (m, p)
/* P must point to the start of a Lisp_Float and not be
one of the unused cells in the current float block. */
return (offset >= 0
&& offset < (FLOAT_BLOCK_SIZE * sizeof b->floats[0])
&& offset % sizeof b->floats[0] == 0
&& (b != float_block
|| offset / sizeof b->floats[0] < float_block_index));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment