mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
7e8d9f49b3
commit
195a09cc7f
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ rb_digest_##name##_update(void *ctx, unsigned char *ptr, size_t size) \
|
|||
for (; size > stride; size -= stride, 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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue