diff --git a/FindPIP.cmake b/FindPIP.cmake index 6e7ebdc8..be1d4c13 100644 --- a/FindPIP.cmake +++ b/FindPIP.cmake @@ -33,7 +33,10 @@ if(NOT PIP_VERSION) math(EXPR SL '${SL}-2') string(SUBSTRING ${_VERSION} 1 ${SL} _VERSION) set(PIP_VERSION ${_VERSION} CACHE STRING "VERSION") - message(STATUS "Found PIP version ${PIP_VERSION}") + if (NOT _PIP_MSG) + set(_PIP_MSG 1 CACHE BOOL "msg_pip" FORCE) + message(STATUS "Found PIP version ${PIP_VERSION}") + endif() endif() if(PIP_FIND_VERSION VERSION_GREATER PIP_VERSION) message(FATAL_ERROR "PIP version ${PIP_VERSION} is available, but ${PIP_FIND_VERSION} requested!") diff --git a/src_main/console/piconsole.h b/src_main/console/piconsole.h index db66b197..eda890e2 100644 --- a/src_main/console/piconsole.h +++ b/src_main/console/piconsole.h @@ -425,7 +425,7 @@ public: PIKbdListener * listener; Alignment def_align; PIKbdListener::KBFunc ret_func; - int width, height, pwidth, pheight, ret, col_wid, num_format, systime_format; + int width, height, pwidth, pheight, col_wid, num_format, systime_format; uint max_y; int vid; uint cur_tab, col_cnt; diff --git a/src_main/console/piscreentiles.cpp b/src_main/console/piscreentiles.cpp index ce24ab93..2b0f0b08 100644 --- a/src_main/console/piscreentiles.cpp +++ b/src_main/console/piscreentiles.cpp @@ -503,8 +503,11 @@ bool TileCheck::keyEvent(PIKbdListener::KeyEvent key) { bool TileCheck::mouseEvent(PIKbdListener::MouseEvent me) { - if (me.action == PIKbdListener::MouseButtonPress) + if (me.action == PIKbdListener::MouseButtonPress) { keyEvent(PIKbdListener::KeyEvent(PIKbdListener::Return)); + return true; + } + return false; } diff --git a/src_main/math/pifixedpoint.h b/src_main/math/pifixedpoint.h index 0c1e881c..93704ca5 100644 --- a/src_main/math/pifixedpoint.h +++ b/src_main/math/pifixedpoint.h @@ -31,8 +31,8 @@ public: typedef PIFixedPoint fp; PIFixedPoint(const Type &v = Type()) {val = fpv(v);} PIFixedPoint(const fp &v) {val = v.val;} - PIFixedPoint(const float &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));} - PIFixedPoint(const double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));} + PIFixedPoint(const float &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << (Precision-1)));} + PIFixedPoint(const double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << (Precision-1)));} // FixedPoint(const long double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));} template diff --git a/src_main/system/piprocess.h b/src_main/system/piprocess.h index f365cfcf..830d99fe 100755 --- a/src_main/system/piprocess.h +++ b/src_main/system/piprocess.h @@ -97,7 +97,7 @@ private: PIByteArray out; PIFile f_in, f_out, f_err; bool g_in, g_out, g_err, t_in, t_out, t_err; - int exit_code, sz; + int exit_code; bool is_exec; };