aboutsummaryrefslogtreecommitdiff
path: root/ports/draco/fix-compile-error-uwp.patch
blob: df0b1df22cf0d9fae2e0c750086b5916f3db3e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/draco/io/parser_utils.cc b/src/draco/io/parser_utils.cc
index 0a22ba1..9862949 100644
--- a/src/draco/io/parser_utils.cc
+++ b/src/draco/io/parser_utils.cc
@@ -150,7 +150,9 @@ bool ParseSignedInt(DecoderBuffer *buffer, int32_t *value) {
   uint32_t v;
   if (!ParseUnsignedInt(buffer, &v))
     return false;
-  *value = (sign < 0) ? -v : v;
+  if (sign < 0)
+    v *= -1;
+  *value = v;
   return true;
 }