aboutsummaryrefslogtreecommitdiff
path: root/src/screen.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/screen.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/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index e06da2124a..be26b6993d 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -7899,7 +7899,7 @@ static void win_redr_ruler(win_T *wp, int always)
vim_snprintf((char *)buffer, RULER_BUF_LEN, "%" PRId64 ",",
(wp->w_buffer->b_ml.ml_flags & ML_EMPTY)
? (int64_t)0L
- : (int64_t)(wp->w_cursor.lnum));
+ : (int64_t)wp->w_cursor.lnum);
len = STRLEN(buffer);
col_print(buffer + len, RULER_BUF_LEN - len,
empty_line ? 0 : (int)wp->w_cursor.col + 1,