diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-04-20 15:10:16 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-23 06:56:33 -0300 |
commit | bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55 (patch) | |
tree | 944fec853b79be322a5a92f31e93025e1389ef23 /src/window.c | |
parent | 5b0aa1cb578914426a26573ba3a7b34dfd65bf04 (diff) | |
download | rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.gz rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.bz2 rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.zip |
Use portable format specifiers: Case %ld - plain - EMSGN.
Fix uses of plain "%ld" within EMSGN():
- Replace "%ld" with "%" PRId64.
- No argument cast needed. EMSGN() will take care of that.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index e5786fae84..8b8ff66ce8 100644 --- a/src/window.c +++ b/src/window.c @@ -5263,14 +5263,16 @@ int match_add(win_T *wp, char_u *grp, char_u *pat, int prio, int id) if (*grp == NUL || *pat == NUL) return -1; if (id < -1 || id == 0) { - EMSGN("E799: Invalid ID: %ld (must be greater than or equal to 1)", id); + EMSGN("E799: Invalid ID: %" PRId64 + " (must be greater than or equal to 1)", + id); return -1; } if (id != -1) { cur = wp->w_match_head; while (cur != NULL) { if (cur->id == id) { - EMSGN("E801: ID already taken: %ld", id); + EMSGN("E801: ID already taken: %" PRId64, id); return -1; } cur = cur->next; @@ -5334,8 +5336,9 @@ int match_delete(win_T *wp, int id, int perr) if (id < 1) { if (perr == TRUE) - EMSGN("E802: Invalid ID: %ld (must be greater than or equal to 1)", - id); + EMSGN("E802: Invalid ID: %" PRId64 + " (must be greater than or equal to 1)", + id); return -1; } while (cur != NULL && cur->id != id) { @@ -5344,7 +5347,7 @@ int match_delete(win_T *wp, int id, int perr) } if (cur == NULL) { if (perr == TRUE) - EMSGN("E803: ID not found: %ld", id); + EMSGN("E803: ID not found: %" PRId64, id); return -1; } if (cur == prev) |