summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerwincoumans <erwin.coumans@gmail.com>2022-05-26 23:10:40 -0400
committerGitHub <noreply@github.com>2022-05-26 23:10:40 -0400
commit466b76680bb6ff8609ebbc15578488ee86711749 (patch)
tree9c6994d4beb77fa51033e8ca5b3014403f64dfda
parent19aa740d8464cd5984f3fd37f285a610dedd4163 (diff)
parent2a5a1d4935aef023ab11864b101ed387cbd84c3c (diff)
downloadbullet3-466b76680bb6ff8609ebbc15578488ee86711749.tar.gz
Merge pull request #4146 from petershh/patch-1
Add explicit int cast to avoid conversion warning
-rw-r--r--src/LinearMath/btSerializer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LinearMath/btSerializer.h b/src/LinearMath/btSerializer.h
index eabf47864..86709566b 100644
--- a/src/LinearMath/btSerializer.h
+++ b/src/LinearMath/btSerializer.h
@@ -512,7 +512,7 @@ public:
currentPtr += BT_HEADER_LENGTH;
for (int i = 0; i < m_chunkPtrs.size(); i++)
{
- int curLength = sizeof(btChunk) + m_chunkPtrs[i]->m_length;
+ int curLength = (int)sizeof(btChunk) + m_chunkPtrs[i]->m_length;
memcpy(currentPtr, m_chunkPtrs[i], curLength);
btAlignedFree(m_chunkPtrs[i]);
currentPtr += curLength;