Skip to content

Commit

Permalink
fix unbuildable tests for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Dec 3, 2021
1 parent 213ca0b commit b9bf0a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/core/logpooler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ namespace vind
LogPooler(const LogPooler&) = delete ;
LogPooler& operator=(const LogPooler&) = delete ;
} ;

}
}

Expand Down
4 changes: 2 additions & 2 deletions src/util/keybrd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace vind
core::release_virtually(*(begin + 1)) ;
}

if(!SendInput(size, dynamic_ins.get(), sizeof(INPUT))) {
if(!SendInput(static_cast<UINT>(size), dynamic_ins.get(), sizeof(INPUT))) {
throw RUNTIME_EXCEPT("failed sending keyboard event") ;
}

Expand Down Expand Up @@ -264,7 +264,7 @@ namespace vind
core::press_virtually(key) ;
}

if(!SendInput(size, dynamic_ins.get(), sizeof(INPUT))) {
if(!SendInput(static_cast<UINT>(size), dynamic_ins.get(), sizeof(INPUT))) {
throw RUNTIME_EXCEPT("failed sending keyboard event") ;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/each/mapgate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace vind
{
namespace bind
{
const auto& all_global_binded_funcs() {
const std::vector<BindedFunc::SPtr>& all_global_binded_funcs() {
static std::vector<BindedFunc::SPtr> tmp {
} ;
return tmp ;
Expand Down

0 comments on commit b9bf0a5

Please sign in to comment.