Use portable format specifiers: Case %ld - localized - EMSGN.

Fix uses of localized "%ld" within EMSGN():
- Replace "%ld" with "%" PRId64.
- No argument cast needed. EMSGN() will take care of that.
This commit is contained in:
Eliseo Martínez
2014-04-20 15:20:22 +02:00
committed by Thiago de Arruda
parent bf3b9d0ecb
commit b8f3ff2a69
10 changed files with 19 additions and 19 deletions

View File

@@ -2460,7 +2460,7 @@ void do_wqall(exarg_T *eap)
break;
}
if (buf->b_ffname == NULL) {
EMSGN(_("E141: No file name for buffer %ld"), (long)buf->b_fnum);
EMSGN(_("E141: No file name for buffer %" PRId64), buf->b_fnum);
++error;
} else if (check_readonly(&eap->forceit, buf)
|| check_overwrite(eap, buf, buf->b_fname, buf->b_ffname,
@@ -6123,7 +6123,7 @@ void ex_sign(exarg_T *eap)
foldOpenCursor();
}
else
EMSGN(_("E157: Invalid sign ID: %ld"), id);
EMSGN(_("E157: Invalid sign ID: %" PRId64), id);
}
else if (idx == SIGNCMD_UNPLACE)
{