diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-05-02 15:04:54 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-05-02 15:05:08 -0700 |
commit | b867eb8ecf67e9fb8167d950316ba762ac561b1c (patch) | |
tree | 17a657b2b9231fd53117aa9acf1a165c14aa023b /src/thread.c | |
parent | bc4d6185528b7e0933cd0486879ea3c2fbc7cf5a (diff) | |
download | emacs-b867eb8ecf67e9fb8167d950316ba762ac561b1c.tar.gz |
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’.
Diffstat (limited to 'src/thread.c')
-rw-r--r-- | src/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c index 9ea7e121a82..e3787971a53 100644 --- a/src/thread.c +++ b/src/thread.c @@ -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); |