]> git.eshelyaron.com Git - emacs.git/commit
int → ptrdiff_t for read results
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Jul 2025 16:35:38 +0000 (09:35 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:49:02 +0000 (10:49 +0200)
commitb36b12887dfa9757054bc2f3e7a43857f015c0c6
tree3ea6f4707420ff0d976e058e74593d556a896cae
parentb8f3fcf2b8ef95e2b75958da819731aedb1a1238
int → ptrdiff_t for read results

* src/fileio.c (Finsert_file_contents): Use ptrdiff_t, not int, to
store results returned by emacs_fd_read, which return ptrdiff_t.
This doesn’t fix any bugs since the values happen to fit in int,
but is a bit clearer and may simplify future changes.

(cherry picked from commit 8ac78986ff7028c249f136b3523dacf0693c22d3)
src/fileio.c