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; }