diff --git a/src/transcription-utils.cpp b/src/transcription-utils.cpp index 517b5f5..321d2fb 100644 --- a/src/transcription-utils.cpp +++ b/src/transcription-utils.cpp @@ -4,8 +4,8 @@ #include #include -#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) { diff --git a/src/whisper-utils/silero-vad-onnx.cpp b/src/whisper-utils/silero-vad-onnx.cpp index 72b4546..4200520 100644 --- a/src/whisper-utils/silero-vad-onnx.cpp +++ b/src/whisper-utils/silero-vad-onnx.cpp @@ -15,7 +15,7 @@ // #define __DEBUG_SPEECH_PROB___ -timestamp_t::timestamp_t(int start_, int end_) : start(start_), end(end_) {}; +timestamp_t::timestamp_t(int start_, int end_) : start(start_), end(end_){}; // assignment operator modifies object, therefore non-const timestamp_t ×tamp_t::operator=(const timestamp_t &a)