From 894f2e8382c97a9d87896cb48bfcf0680c5b8f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Thu, 13 Aug 2015 15:00:37 +0200 Subject: [PATCH] Change another cast --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index cd55b92..5314f91 100644 --- a/src/window.cc +++ b/src/window.cc @@ -598,7 +598,7 @@ void Window::goto_line_entry() { if(notebook.get_current_page()!=-1) { auto buffer=notebook.get_current_view()->get_buffer(); try { - auto line=stoul(content); + auto line = boost::lexical_cast(content); if(line>0 && line<=(unsigned long)buffer->get_line_count()) { line--; buffer->place_cursor(buffer->get_iter_at_line(line));