From 0a1987fcde64a477254f503060c39dfd28acc34c Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 31 Aug 2018 17:55:22 +0300 Subject: [PATCH] Add missing cast --- common/ffsbuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ffsbuilder.cpp b/common/ffsbuilder.cpp index 558945a..8319b30 100644 --- a/common/ffsbuilder.cpp +++ b/common/ffsbuilder.cpp @@ -1,4 +1,4 @@ -/* fssbuilder.cpp +/* fssbuilder.cpp Copyright (c) 2015, Nikolaj Schlej. All rights reserved. This program and the accompanying materials @@ -978,7 +978,7 @@ USTATUS FfsBuilder::buildNvramStore(const UModelIndex & index, UByteArray & stor // Recalculate store checksum UINT32 calculatedCrc = crc32(0, (const UINT8*)store.constData(), (const UINT32)store.size() - sizeof(UINT32)); // Write new checksum - body.replace((const UINT32)body.size() - sizeof(UINT32), sizeof(UINT32), &calculatedCrc, sizeof(UINT32)); + body.replace((const UINT32)body.size() - sizeof(UINT32), sizeof(UINT32), (const char *)&calculatedCrc, sizeof(UINT32)); } else if(type == Types::EvsaStore) { UByteArray store = header + body;