From 813ba873a8380efe6f7d6c8973a0716030011170 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 5 Aug 2018 01:48:59 +0300 Subject: [PATCH] Add binary_search_ranges debug. GitOrigin-RevId: 866977f67c8816c9fb2fc1bcf0970f8f5cb4c03b --- tdutils/td/utils/unicode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdutils/td/utils/unicode.cpp b/tdutils/td/utils/unicode.cpp index 15ca7eee1..45c01f318 100644 --- a/tdutils/td/utils/unicode.cpp +++ b/tdutils/td/utils/unicode.cpp @@ -1150,7 +1150,7 @@ static uint32 binary_search_ranges(const int32 (&ranges)[N], uint32 code) { case 2: return ((code - 1) | 1); default: - UNREACHABLE(); + LOG(FATAL) << code << " " << l << " " << r << " " << t; return 0; } }