aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-25 12:59:27 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-28 07:59:25 -0300
commite1943248855756174c445870716cc98ebf16b30e (patch)
treec91b252241aecf5f25641ea3c6249dc8a08d1dae /src/fileio.c
parentb8520b8ee403388f94fda7306f1713bfa1ffae8a (diff)
downloadrneovim-e1943248855756174c445870716cc98ebf16b30e.tar.gz
rneovim-e1943248855756174c445870716cc98ebf16b30e.tar.bz2
rneovim-e1943248855756174c445870716cc98ebf16b30e.zip
Use portable format specifiers: Clarify some casted expressions.
Though correct (to my understanding), some of the casts introduced in previous commits could lead to confusion, by casting only the first expression component instead of the whole expression. This fixes that, parenthesizing casted expressions, except where operator precedence rules make it unneccesary.
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,