Skip to content

Commit f272683

Browse files
committed
TSA: TH_UNLIKELY macro makes no sense here
1 parent 0a9e6da commit f272683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thcrap_tsa/src/layout.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ void ruby_shift_debug_impl(HDC hdc, int orig_x) {
608608

609609

610610
void debug_colorfill_impl(HDC hdc) {
611-
if TH_UNLIKELY(debug_fill_brush) {
611+
if unexpected(debug_fill_brush) {
612612
RECT drawRect = { 0, 0, GetDeviceCaps(hdc, HORZRES), GetDeviceCaps(hdc, VERTRES) };
613613
FillRect(hdc, &drawRect, debug_fill_brush);
614614
}
@@ -812,7 +812,7 @@ int layout_mod_init(HMODULE hMod)
812812
json_object_get_eval_bool(runcfg, "ruby_shift_debug", &ruby_shift_debug, JEVAL_DEFAULT);
813813

814814
size_t col;
815-
if TH_UNLIKELY(!json_object_get_eval_int(runcfg, "hdc_debug_color", &col, JEVAL_DEFAULT)) {
815+
if unexpected(!json_object_get_eval_int(runcfg, "hdc_debug_color", &col, JEVAL_DEFAULT)) {
816816
// Truncation to the lower 32 bits in 64 bit mode
817817
debug_fill_brush = CreateSolidBrush((COLORREF)col);
818818
}

0 commit comments

Comments
 (0)