add various type changes to avoid problems on systems where int and

ssize_t are different sizes.  Make filestruct->lineno a ssize_t (so that
we can avoid negative line numbers at the "Go To Line" prompt),
current_y a ssize_t (in order to hold the maximum difference between two
filestruct->lineno's), totlines a size_t, and change related variables
to match


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2782 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2005-06-28 06:25:34 +00:00
parent 6ad6b85862
commit 2cf6d717f1
10 changed files with 43 additions and 32 deletions

View File

@@ -511,7 +511,7 @@ void do_insertfile(
char *ans = mallocstrcpy(NULL, "");
/* The last answer the user typed on the statusbar. */
filestruct *edittop_save = edittop;
int current_y_save = current_y;
ssize_t current_y_save = current_y;
bool at_edittop = FALSE;
/* Whether we're at the top of the edit window. */