mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46:45 +08:00
warning C4267
This commit is contained in:
parent
10cc2d3360
commit
9655db2e3a
@ -13,7 +13,10 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
set(GOOGLETEST_VERSION 1.10.0)
|
||||
add_subdirectory(3rdparty/gtest)
|
||||
add_subdirectory(test)
|
||||
|
||||
add_subdirectory(demo/chat)
|
||||
add_subdirectory(demo/msg_que)
|
||||
|
||||
@ -27,7 +27,10 @@ using msg_que_t = ipc::chan<ipc::relat::single, ipc::relat::single, ipc::trans::
|
||||
|
||||
msg_que_t que__{ name__ };
|
||||
ipc::byte_t buff__[max_sz];
|
||||
capo::random<> rand__{ min_sz, max_sz };
|
||||
capo::random<> rand__{
|
||||
static_cast<int>(min_sz),
|
||||
static_cast<int>(max_sz)
|
||||
};
|
||||
|
||||
inline std::string str_of_size(std::size_t sz) noexcept {
|
||||
if (sz > 1024 * 1024) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user