From 91ed6a7db27b5320d1e30a215934c3ecfd87b1b0 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Tue, 22 Dec 2020 21:56:33 +0900 Subject: [PATCH] libaurum: prevent from infinite sleep in some case, argument for sleep function becomes a negative value. and it causes infinite sleep. the problem is caused by an unsigned keyword. and this patch fix them to prevent the problem. Change-Id: I2a450c77a6c61c311f932d8b0067216e2f9b484f --- libaurum/inc/Impl/MockDeviceImpl.h | 12 ++++++------ libaurum/inc/Impl/TizenDeviceImpl.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libaurum/inc/Impl/MockDeviceImpl.h b/libaurum/inc/Impl/MockDeviceImpl.h index 43ad464..241af8c 100644 --- a/libaurum/inc/Impl/MockDeviceImpl.h +++ b/libaurum/inc/Impl/MockDeviceImpl.h @@ -190,32 +190,32 @@ public: /** * @brief TBD */ - static const unsigned int INTV_CLICK = 5; + static const int INTV_CLICK = 5; /** * @brief TBD */ - static const unsigned int INTV_SHORTSTROKE = 100; + static const int INTV_SHORTSTROKE = 100; /** * @brief TBD */ - static const unsigned int INTV_LONGSTROKE = 2000; + static const int INTV_LONGSTROKE = 2000; /** * @brief TBD */ - static const unsigned int INTV_MINIMUM_DRAG_MS = 25; + static const int INTV_MINIMUM_DRAG_MS = 25; /** * @brief TBD */ - static const unsigned int INTV_MINIMUM_USLEEP = 1000; + static const int INTV_MINIMUM_USLEEP = 1000; /** * @brief TBD */ - static const unsigned int MINIMUM_DURATION_DRAG = 100; + static const int MINIMUM_DURATION_DRAG = 100; /** * @brief TBD diff --git a/libaurum/inc/Impl/TizenDeviceImpl.h b/libaurum/inc/Impl/TizenDeviceImpl.h index cf5b5cb..f72eb0c 100644 --- a/libaurum/inc/Impl/TizenDeviceImpl.h +++ b/libaurum/inc/Impl/TizenDeviceImpl.h @@ -191,32 +191,32 @@ private: /** * @brief TBD */ - static const unsigned int INTV_CLICK = 5; + static const int INTV_CLICK = 5; /** * @brief TBD */ - static const unsigned int INTV_SHORTSTROKE = 100; + static const int INTV_SHORTSTROKE = 100; /** * @brief TBD */ - static const unsigned int INTV_LONGSTROKE = 2000; + static const int INTV_LONGSTROKE = 2000; /** * @brief TBD */ - static const unsigned int INTV_MINIMUM_DRAG_MS = 25; + static const int INTV_MINIMUM_DRAG_MS = 25; /** * @brief TBD */ - static const unsigned int INTV_MINIMUM_USLEEP = 1000; + static const int INTV_MINIMUM_USLEEP = 1000; /** * @brief TBD */ - static const unsigned int MINIMUM_DURATION_DRAG = 100; + static const int MINIMUM_DURATION_DRAG = 100; /** * @brief TBD -- 2.7.4