]> git.wh0rd.org Git - nano.git/commitdiff
add missing part of the variable type changes in do_gotoline()
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 12 Jul 2004 16:26:55 +0000 (16:26 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 12 Jul 2004 16:26:55 +0000 (16:26 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1854 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index 1e24d814b952260636bcd363de51309d5312abaf..63900db4656da0de980ee1e9466d76fa9ace4e6b 100644 (file)
@@ -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) {