From 58ad5534551762918cc1877e695972691407093f Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 28 Feb 2002 12:02:50 +0000 Subject: [PATCH] Unsigned/signed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3606 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/FormForks.C | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 13ec480911..e89f12a113 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-02-28 Angus Leeming + + * FormForks.C (input_button_all): resolve comparison between signed + and unsigned. + 2002-02-26 Jean-Marc Lasgouttes * Menubar_pimpl.C (makeMenubar): ignore entries which are not diff --git a/src/frontends/xforms/FormForks.C b/src/frontends/xforms/FormForks.C index 54d2727cf5..524c8346cc 100644 --- a/src/frontends/xforms/FormForks.C +++ b/src/frontends/xforms/FormForks.C @@ -317,7 +317,11 @@ ButtonPolicy::SMInput FormForks::input_button_all() ButtonPolicy::SMInput activate = ButtonPolicy::SMI_NOOP; vector const pid_vec = getPIDvector(dialog_->browser_children); - if (fl_get_browser_maxline(dialog_->browser_kill) != pid_vec.size()) { + + // to resolve a warning about comparison between signed and unsigned. + int const pid_vec_size = int(pid_vec.size()); + + if (fl_get_browser_maxline(dialog_->browser_kill) != pid_vec_size) { activate = ButtonPolicy::SMI_VALID; fl_clear_browser(dialog_->browser_kill);