aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2025-07-13 09:35:38 -0700
committerPaul Eggert2025-07-13 21:09:39 -0700
commit8ac78986ff7028c249f136b3523dacf0693c22d3 (patch)
tree5c8bd447feb63009597e92ec4d2f088eb2735d11 /src
parentf4adb56c9adc9b4f4715c656f1f8cfa7305479e5 (diff)
downloademacs-8ac78986ff7028c249f136b3523dacf0693c22d3.tar.gz
emacs-8ac78986ff7028c249f136b3523dacf0693c22d3.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index bd8528af235..8150f4d8e12 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4501,7 +4501,7 @@ by calling `format-decode', which see. */)
4501 4501
4502 while (!giveup_match_end) 4502 while (!giveup_match_end)
4503 { 4503 {
4504 int total_read, nread, bufpos, trial; 4504 ptrdiff_t total_read, nread, bufpos, trial;
4505 off_t curpos; 4505 off_t curpos;
4506 4506
4507 /* At what file position are we now scanning? */ 4507 /* At what file position are we now scanning? */