* src/textconv.c (get_conversion_field): Set max value to
PTRDIFF_MAX, not MOST_POSITIVE_FIXNUM, since the variable is
ptrdiff_t, not EMACS_INT. Problem caught by gcc -Woverflow on a
32-bit platform with --with-wide-int.
(cherry picked from commit
b4050ab75e896dd0df51624c956e0dd412dde2cc)
/* Return the confines of the field to which editing operations on frame
F should be constrained in *BEG and *END. Should no field be active,
- set *END to MOST_POSITIVE_FIXNUM. */
+ set *END to PTRDIFF_MAX. */
void
get_conversion_field (struct frame *f, ptrdiff_t *beg, ptrdiff_t *end)
}
*beg = 1;
- *end = MOST_POSITIVE_FIXNUM;
+ *end = PTRDIFF_MAX;
}
/* Start a ``batch edit'' in frame F. During a batch edit,