From 300b87fda694eae572cd341c67e1f6f72d956a4b Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 12 Jul 2004 16:26:55 +0000 Subject: [PATCH] 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 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5