From 2c5f5139947340ff1609100bb67e6bec9ee666b2 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 22 Oct 2015 13:46:51 +0200 Subject: [PATCH] Removed a gcc warning. --- src/notebook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notebook.cc b/src/notebook.cc index 445756a..1bbec27 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -240,7 +240,7 @@ bool Notebook::close_current_page() { int page = get_current_page(); int index=get_index(page); - if(last_index!=-1) { + if(last_index!=static_cast(-1)) { set_current_page(page_num(*hboxes.at(last_index))); last_index=-1; }