From 66fd711bbb383951528dc47c40191dc7da8021f8 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 17 Oct 2013 16:00:09 +0000 Subject: [PATCH] silence GCC warning "enumeral and non-enumeral type in conditional expression" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/utilsunx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index eb377d9f76..450966d1fe 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -627,7 +627,7 @@ long wxExecute(char **argv, int flags, wxProcess *process, // 1. wxPRIORITY_{MIN,DEFAULT,MAX} map to -20, 0 and 19 respectively. // 2. The mapping is monotonously increasing. // 3. The mapping is onto the target range. - int prio = process ? process->GetPriority() : wxPRIORITY_DEFAULT; + int prio = process ? int(process->GetPriority()) : int(wxPRIORITY_DEFAULT); if ( prio <= 50 ) prio = (2*prio)/5 - 20; else if ( prio < 55 )