1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-09 12:40:27 +08:00

chore: adapt to MSVC

This commit is contained in:
源文雨
2024-04-07 20:51:27 +09:00
parent 3b4925e013
commit 3ee12395e0
5 changed files with 52 additions and 19 deletions

View File

@@ -90,7 +90,11 @@
// initial sum value used in BASE16384_FLAG_SUM_CHECK_ON_REMAIN
#define BASE16384_SIMPLE_SUM_INIT_VALUE (0x8e29c213)
#ifdef _MSC_VER
static inline uint32_t calc_sum(uint32_t sum, int cnt, const char* encbuf) {
#else
static inline uint32_t calc_sum(uint32_t sum, size_t cnt, const char* encbuf) {
#endif
size_t i;
uint32_t buf;
for(i = 0; i < cnt; i++) {