mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
fix few warnings
This commit is contained in:
@@ -61,6 +61,15 @@ if(E2D_BUILD_WITH_SANITIZER AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} ${E2D_SANITIZER_FLAGS}")
|
||||
endif()
|
||||
|
||||
#
|
||||
# global compiling mode
|
||||
#
|
||||
|
||||
if(MSVC)
|
||||
add_definitions(/MP)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif(MSVC)
|
||||
|
||||
#
|
||||
# e2d sources
|
||||
#
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace e2d { namespace render_system_impl
|
||||
std::transform(
|
||||
iter, indices_.end(), iter,
|
||||
[add = vertices_.size()](index_type v) noexcept {
|
||||
return v + add;
|
||||
return static_cast<index_type>(v + add);
|
||||
});
|
||||
batches_.back().count += index_count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user