From 01666d01f737e5fabb75c7ac0503362653828119 Mon Sep 17 00:00:00 2001 From: Artyom Polkovnikov Date: Wed, 24 Dec 2014 10:42:22 +0300 Subject: [PATCH] [indexer] Fix IsDigit() implementation, as it crashes in debug MSVC compile. --- indexer/feature_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/feature_impl.cpp b/indexer/feature_impl.cpp index 16e2c73aec..54d1719453 100644 --- a/indexer/feature_impl.cpp +++ b/indexer/feature_impl.cpp @@ -9,7 +9,7 @@ namespace feature bool IsDigit(int c) { - return (c <= 127 && isdigit(c)); + return (int('0') <= c && c <= int('9')); } bool IsNumber(strings::UniString const & s)