mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 12:47:56 +08:00
460b6d5f20
* [manyports] Update version 5 * [coolprop] Update version * Update CONTROL * Update ports/refprop-headers/CONTROL Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
31 lines
747 B
Diff
31 lines
747 B
Diff
diff --git a/src/draco/io/parser_utils.cc b/src/draco/io/parser_utils.cc
|
|
index 6e42a58..3c302b9 100644
|
|
--- a/src/draco/io/parser_utils.cc
|
|
+++ b/src/draco/io/parser_utils.cc
|
|
@@ -160,7 +160,9 @@ bool ParseSignedInt(DecoderBuffer *buffer, int32_t *value) {
|
|
if (!ParseUnsignedInt(buffer, &v)) {
|
|
return false;
|
|
}
|
|
- *value = (sign < 0) ? -v : v;
|
|
+ if (sign < 0)
|
|
+ v *= -1;
|
|
+ *value = v;
|
|
return true;
|
|
}
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7e79da7..c4d9880 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -153,6 +153,10 @@ if(ENABLE_EXTRA_SPEED)
|
|
endif()
|
|
endif()
|
|
|
|
+if (MSVC)
|
|
+ add_compile_options(/wd4996)
|
|
+endif()
|
|
+
|
|
# Generate a version file containing repository info.
|
|
include(FindGit)
|
|
find_package(Git)
|