Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit d7ed6d9

Browse files
committed
Spaces for casts
1 parent b66df4d commit d7ed6d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* to strict-aliasing rules.
5050
*/
5151
#define SARBODY(type, utype) \
52-
const int logical = (((type)-1) >> 1) > 0; \
52+
const int logical = (((type) -1) >> 1) > 0; \
5353
utype fixu = -(logical & (m < 0)); \
5454
type fix = *(type*) &fixu; \
5555
return (m >> n) | (fix ^ (fix >> n))

saru.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
* Force logical right shifts by casting to unsigned types.
2020
*/
2121
#define SARUBODY(type, utype) \
22-
const int logical = (((utype)-1) >> 1) > 0; \
22+
const int logical = (((utype) -1) >> 1) > 0; \
2323
utype fixu = -(logical & (m < 0)); \
24-
utype saru = ((utype)m >> n) | (fixu ^ (fixu >> n)); \
25-
return *(type*)&saru;
24+
utype saru = ((utype) m >> n) | (fixu ^ (fixu >> n)); \
25+
return *(type*) &saru;
2626

2727

2828
static inline signed char

0 commit comments

Comments
 (0)