mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Add FALLTHROUGH
Pointed out by Coverity Scan ``` ** CID 1466646: Control flow issues (MISSING_BREAK) /ext/-test-/random/loop.c: 63 in loop_get_bytes() ```
This commit is contained in:
parent
2b07b24bdf
commit
5be75aad37
@ -63,12 +63,15 @@ loop_get_bytes(rb_random_t *rnd, void *p, size_t n)
|
||||
case 0:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 3:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user