aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 8591c20562..e1542cf1f1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5702,7 +5702,7 @@ vim_tempname (
mode_t umask_save;
# endif
- sprintf((char *)itmp + itmplen, "v%" PRId64, (int64_t)nr + off);
+ sprintf((char *)itmp + itmplen, "v%" PRId64, (int64_t)(nr + off));
# ifndef EEXIST
/* If mkdir() does not set errno to EEXIST, check for
* existing file here. There is a race condition then,