commit 972f5ee6
Changed the fall through comment
Changed files
| M | src/Libs/cdecode.c before |
| M | src/Libs/cencode.c before |
diff --git a/src/Libs/cdecode.c b/src/Libs/cdecode.c
index a211c61..049528b 100644
--- a/src/Libs/cdecode.c
+++ b/src/Libs/cdecode.c
@@ -46,7 +46,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex
fragment = base64_decode_value(*codechar++);
} while (fragment < 0);
*plainchar = (fragment & 0x03f) << 2;
- __attribute__ ((fallthrough));
+ // fall through
case step_b:
do {
if (codechar == code_in+length_in)
@@ -59,7 +59,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex
} while (fragment < 0);
*plainchar++ |= (fragment & 0x030) >> 4;
*plainchar = (fragment & 0x00f) << 4;
- __attribute__ ((fallthrough));
+ // fall through
case step_c:
do {
if (codechar == code_in+length_in)
@@ -72,7 +72,7 @@ int base64_decode_block(const char* code_in, const int length_in, char* plaintex
} while (fragment < 0);
*plainchar++ |= (fragment & 0x03c) >> 2;
*plainchar = (fragment & 0x003) << 6;
- __attribute__ ((fallthrough));
+ // fall through
case step_d:
do {
if (codechar == code_in+length_in)
diff --git a/src/Libs/cencode.c b/src/Libs/cencode.c
index ad90cb5..4f105ba 100644
--- a/src/Libs/cencode.c
+++ b/src/Libs/cencode.c
@@ -48,7 +48,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
result = (fragment & 0x0fc) >> 2;
*codechar++ = base64_encode_value(result);
result = (fragment & 0x003) << 4;
- __attribute__ ((fallthrough));
+ // fall through
case step_B:
if (plainchar == plaintextend)
{
@@ -60,7 +60,7 @@ int base64_encode_block(const char* plaintext_in, int length_in, char* code_out,
result |= (fragment & 0x0f0) >> 4;
*codechar++ = base64_encode_value(result);
result = (fragment & 0x00f) << 2;
- __attribute__ ((fallthrough));
+ // fall through
case step_C:
if (plainchar == plaintextend)
{