aboutsummaryrefslogtreecommitdiff
path: root/devicedeployment.c
diff options
context:
space:
mode:
authorTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-04-17 22:44:31 +0300
committerTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-04-17 22:44:31 +0300
commit706a71c01664ad990c60f6187eb1886693a93153 (patch)
tree6c60d7d53a87a7477877d327ad074d2a8e8dd682 /devicedeployment.c
parent7dc56301dd8388cdf60e0c3270ec99b403c6063f (diff)
downloadSimpleMotionV2-706a71c01664ad990c60f6187eb1886693a93153.tar.gz
SimpleMotionV2-706a71c01664ad990c60f6187eb1886693a93153.zip
Fix FW uploader crashing on 64 bit OS X
Diffstat (limited to 'devicedeployment.c')
-rw-r--r--devicedeployment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devicedeployment.c b/devicedeployment.c
index 54f07e0..a5078b3 100644
--- a/devicedeployment.c
+++ b/devicedeployment.c
@@ -321,7 +321,7 @@ FirmwareUploadStatus verifyFirmwareData(smuint8 *data, smuint32 numbytes, int co
smuint32 cksumOffset=4+2+2+4+4+primaryMCUSize+secondaryMCUSize;
if(cksumOffset>numbytes-4)
return FWInvalidFile;
- cksum=((smuint32*)((smuint32)data+cksumOffset))[0];
+ cksum=((smuint32*)(data+cksumOffset))[0];
for(i=0;i< numbytes-4;i++)
{