From cf69742163427c838438b9c9c5de60386e8b5c4b Mon Sep 17 00:00:00 2001 From: armink Date: Tue, 11 Oct 2016 22:37:33 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E5=AE=8C=E5=96=84=E3=80=91C?= =?UTF-8?q?RC32=20=E8=AE=A1=E7=AE=97=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E5=85=B6=E6=9B=B4=E5=A5=BD=E7=9A=84=E6=94=AF=E6=8C=81=20C++=20?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- easyflash/src/ef_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyflash/src/ef_utils.c b/easyflash/src/ef_utils.c index 4c5161f..770e860 100644 --- a/easyflash/src/ef_utils.c +++ b/easyflash/src/ef_utils.c @@ -1,7 +1,7 @@ /* * This file is part of the EasyFlash Library. * - * Copyright (c) 2015, Armink, + * Copyright (c) 2015-2016, Armink, * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -88,7 +88,7 @@ uint32_t ef_calc_crc32(uint32_t crc, const void *buf, size_t size) { const uint8_t *p; - p = buf; + p = (const uint8_t *)buf; crc = crc ^ ~0U; while (size--) {