diff options
author | Glen Barber <gjb@FreeBSD.org> | 2016-01-05 14:21:02 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2016-01-05 14:21:02 +0000 |
commit | 582727cc63d3296d7cca69d05c3ac5b5578638cf (patch) | |
tree | 22b856625336f5381ae6eeee4d4b3881c188da61 /contrib/less/cvt.c | |
parent | 241984530f04a13d398c5aeb6d2eb65bb727fbca (diff) | |
parent | e10c4cc0a4182ed3e5f6a4a76fc72706fa459271 (diff) | |
download | src-582727cc63d3296d7cca69d05c3ac5b5578638cf.tar.gz src-582727cc63d3296d7cca69d05c3ac5b5578638cf.zip |
MFH
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/projects/release-pkg/; revision=293196
Diffstat (limited to 'contrib/less/cvt.c')
-rw-r--r-- | contrib/less/cvt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/less/cvt.c b/contrib/less/cvt.c index c3b3e6e7420c..d9836418e13f 100644 --- a/contrib/less/cvt.c +++ b/contrib/less/cvt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2012 Mark Nudelman + * Copyright (C) 1984-2015 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -75,8 +75,8 @@ cvt_text(odst, osrc, chpos, lenp, ops) for (src = osrc, dst = odst; src < src_end; ) { - int src_pos = src - osrc; - int dst_pos = dst - odst; + int src_pos = (int) (src - osrc); + int dst_pos = (int) (dst - odst); ch = step_char(&src, +1, src_end); if ((ops & CVT_BS) && ch == '\b' && dst > odst) { @@ -109,6 +109,6 @@ cvt_text(odst, osrc, chpos, lenp, ops) edst--; *edst = '\0'; if (lenp != NULL) - *lenp = edst - odst; + *lenp = (int) (edst - odst); /* FIXME: why was this here? if (chpos != NULL) chpos[dst - odst] = src - osrc; */ } |