Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit cast to avoid warning.
details: https://anonhg.NetBSD.org/src/rev/d54a19d50b2b
branches: trunk
changeset: 787911:d54a19d50b2b
user: christos <christos%NetBSD.org@localhost>
date: Fri Jul 12 22:39:50 2013 +0000
description:
cast to avoid warning.
diffstat:
lib/libedit/chared.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f61a61adcfe2 -r d54a19d50b2b lib/libedit/chared.c
--- a/lib/libedit/chared.c Fri Jul 12 17:48:29 2013 +0000
+++ b/lib/libedit/chared.c Fri Jul 12 22:39:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chared.c,v 1.38 2013/07/12 17:48:29 christos Exp $ */
+/* $NetBSD: chared.c,v 1.39 2013/07/12 22:39:50 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)chared.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: chared.c,v 1.38 2013/07/12 17:48:29 christos Exp $");
+__RCSID("$NetBSD: chared.c,v 1.39 2013/07/12 22:39:50 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -660,7 +660,7 @@
if (el->el_line.cursor > el->el_line.lastchar)
el->el_line.cursor = el->el_line.lastchar;
out:
- return el->el_line.cursor - el->el_line.buffer;
+ return (int)(el->el_line.cursor - el->el_line.buffer);
}
/* c_gets():
Home |
Main Index |
Thread Index |
Old Index