Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.bin/vi/vi Pullup 1.5 [releng]:
details: https://anonhg.NetBSD.org/src/rev/bc9aaf88c26e
branches: netbsd-1-5
changeset: 489859:bc9aaf88c26e
user: tv <tv%NetBSD.org@localhost>
date: Wed Oct 18 01:46:25 2000 +0000
description:
Pullup 1.5 [releng]:
Fix %l[du] formats that have int arguments on ILP32; might break LP64.
diffstat:
usr.bin/vi/vi/vs_refresh.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 38600ca4c023 -r bc9aaf88c26e usr.bin/vi/vi/vs_refresh.c
--- a/usr.bin/vi/vi/vs_refresh.c Wed Oct 18 01:46:05 2000 +0000
+++ b/usr.bin/vi/vi/vs_refresh.c Wed Oct 18 01:46:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vs_refresh.c,v 1.4 2000/03/13 23:22:53 soren Exp $ */
+/* $NetBSD: vs_refresh.c,v 1.4.4.1 2000/10/18 01:46:25 tv Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -791,7 +791,8 @@
*/
if (O_ISSET(sp, O_RULER)) {
vs_column(sp, &curcol);
- len = snprintf(buf, sizeof(buf), "%lu,%lu", sp->lno, curcol + 1);
+ len = snprintf(buf, sizeof(buf), "%lu,%lu",
+ (unsigned long)sp->lno, (unsigned long)(curcol + 1));
midpoint = (cols - ((len + 1) / 2)) / 2;
if (curlen < midpoint) {
Home |
Main Index |
Thread Index |
Old Index