From: David Lawrence Ramsey Date: Mon, 12 Jul 2004 16:26:55 +0000 (+0000) Subject: add missing part of the variable type changes in do_gotoline() X-Git-Tag: v1.3.4~52 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=300b87fda694eae572cd341c67e1f6f72d956a4b;p=nano.git add missing part of the variable type changes in do_gotoline() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1854 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/search.c b/src/search.c index 1e24d814..63900db4 100644 --- a/src/search.c +++ b/src/search.c @@ -846,7 +846,7 @@ void do_gotoline(ssize_t line, int save_pos) return; } - line = atoi(answer); + line = (ssize_t)atol(answer); /* Bounds check. */ if (line <= 0) {