shithub: orca

Download patch

ref: d304dc8e18352333a6a3358c8c192031c0854641
parent: 54851e4fe9333968553929a9b8396e1a82ad97d2
author: cancel <cancel@cancel.fm>
date: Sun Jan 26 02:06:08 EST 2020

Remove redundant parens

--- a/sim.c
+++ b/sim.c
@@ -33,11 +33,9 @@
 //   return 0;
 // }
 
-static ORCA_FORCEINLINE bool glyph_is_lowercase(Glyph g) {
-  return g & (1 << 5);
-}
+static ORCA_FORCEINLINE bool glyph_is_lowercase(Glyph g) { return g & 1 << 5; }
 static ORCA_FORCEINLINE Glyph glyph_lowered_unsafe(Glyph g) {
-  return (Glyph)(g | (1 << 5));
+  return (Glyph)(g | 1 << 5);
 }
 static inline Glyph glyph_with_case(Glyph g, Glyph caser) {
   enum { Case_bit = 1 << 5, Alpha_bit = 1 << 6 };
@@ -746,7 +744,7 @@
 
 #define ALPHA_CASE(_upper_oper_char, _oper_name)                               \
   case _upper_oper_char:                                                       \
-  case ((char)(_upper_oper_char | (1 << 5))):                                  \
+  case (char)(_upper_oper_char | 1 << 5):                                      \
     oper_behavior_##_oper_name(gbuf, mbuf, height, width, iy, ix, tick_number, \
                                &extras, cell_flags, glyph_char);               \
     break;