Skip to content

Commit

Permalink
Fix formatting of is_lead_byte and is_trail_byte macros
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Apr 1, 2024
1 parent 69ce2cf commit 2564514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transcription-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ void acquire_weak_text_source_ref(struct transcription_filter_data *gf)
}
}

#define is_lead_byte(c) (((c) & 0xe0) == 0xc0 || ((c) & 0xf0) == 0xe0 || ((c) & 0xf8) == 0xf0)
#define is_trail_byte(c) (((c) & 0xc0) == 0x80)
#define is_lead_byte(c) (((c)&0xe0) == 0xc0 || ((c)&0xf0) == 0xe0 || ((c)&0xf8) == 0xf0)
#define is_trail_byte(c) (((c)&0xc0) == 0x80)

inline int lead_byte_length(const uint8_t c)
{
Expand Down

0 comments on commit 2564514

Please sign in to comment.