[ruby/digest] Suppress implicit cast down warnings

https://github.com/ruby/digest/commit/2f3505bf3f
This commit is contained in:
Nobuyoshi Nakada 2023-11-09 16:12:03 +09:00 committed by git
parent 7e8d9f49b3
commit 195a09cc7f

View File

@ -40,7 +40,8 @@ rb_digest_##name##_update(void *ctx, unsigned char *ptr, size_t size) \
for (; size > stride; size -= stride, ptr += stride) { \ for (; size > stride; size -= stride, ptr += stride) { \
name##_Update(ctx, ptr, stride); \ name##_Update(ctx, ptr, stride); \
} \ } \
if (size > 0) name##_Update(ctx, ptr, size); \ /* Since size <= stride, size should fit into an unsigned int */ \
if (size > 0) name##_Update(ctx, ptr, (unsigned int)size); \
} }
#define DEFINE_FINISH_FUNC_FROM_FINAL(name) \ #define DEFINE_FINISH_FUNC_FROM_FINAL(name) \