mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
Use ptrdiff_t, not int, for stack sizes
* src/thread.c (invoke_thread_function): * src/xterm.c (x_cr_export_frames): Don’t assume SPECPDL_INDEX fits in ‘int’.
This commit is contained in:
parent
bc4d618552
commit
b867eb8ecf
@ -664,7 +664,7 @@ DEFUN ("thread-yield", Fthread_yield, Sthread_yield, 0, 0, 0,
|
||||
static Lisp_Object
|
||||
invoke_thread_function (void)
|
||||
{
|
||||
int count = SPECPDL_INDEX ();
|
||||
ptrdiff_t count = SPECPDL_INDEX ();
|
||||
|
||||
Ffuncall (1, ¤t_thread->function);
|
||||
return unbind_to (count, Qnil);
|
||||
|
@ -569,7 +569,7 @@ x_cr_export_frames (Lisp_Object frames, cairo_surface_type_t surface_type)
|
||||
int width, height;
|
||||
void (*surface_set_size_func) (cairo_surface_t *, double, double) = NULL;
|
||||
Lisp_Object acc = Qnil;
|
||||
int count = SPECPDL_INDEX ();
|
||||
ptrdiff_t count = SPECPDL_INDEX ();
|
||||
|
||||
specbind (Qredisplay_dont_pause, Qt);
|
||||
redisplay_preserve_echo_area (31);
|
||||
|
Loading…
Reference in New Issue
Block a user