From b9bf0a54ade861307a4e5fe2f335059a586a2892 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Fri, 3 Dec 2021 17:10:08 +0900 Subject: [PATCH] fix unbuildable tests for MSVC --- src/core/logpooler.hpp | 1 - src/util/keybrd.hpp | 4 ++-- tests/each/mapgate_test.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/logpooler.hpp b/src/core/logpooler.hpp index ea528ee8..d9bbca4d 100644 --- a/src/core/logpooler.hpp +++ b/src/core/logpooler.hpp @@ -31,7 +31,6 @@ namespace vind LogPooler(const LogPooler&) = delete ; LogPooler& operator=(const LogPooler&) = delete ; } ; - } } diff --git a/src/util/keybrd.hpp b/src/util/keybrd.hpp index 15640334..d9a4d815 100644 --- a/src/util/keybrd.hpp +++ b/src/util/keybrd.hpp @@ -151,7 +151,7 @@ namespace vind core::release_virtually(*(begin + 1)) ; } - if(!SendInput(size, dynamic_ins.get(), sizeof(INPUT))) { + if(!SendInput(static_cast(size), dynamic_ins.get(), sizeof(INPUT))) { throw RUNTIME_EXCEPT("failed sending keyboard event") ; } @@ -264,7 +264,7 @@ namespace vind core::press_virtually(key) ; } - if(!SendInput(size, dynamic_ins.get(), sizeof(INPUT))) { + if(!SendInput(static_cast(size), dynamic_ins.get(), sizeof(INPUT))) { throw RUNTIME_EXCEPT("failed sending keyboard event") ; } diff --git a/tests/each/mapgate_test.cpp b/tests/each/mapgate_test.cpp index 29bcf251..7fc31aa5 100644 --- a/tests/each/mapgate_test.cpp +++ b/tests/each/mapgate_test.cpp @@ -9,7 +9,7 @@ namespace vind { namespace bind { - const auto& all_global_binded_funcs() { + const std::vector& all_global_binded_funcs() { static std::vector tmp { } ; return tmp ;