src: Small improvements
Change-Id: I9850cd6ec2330482915f815d94a2ac2ccaeae7f1
diff --git a/core/logger-factory.cpp b/core/logger-factory.cpp
index 6805af9..61ca866 100644
--- a/core/logger-factory.cpp
+++ b/core/logger-factory.cpp
@@ -73,7 +73,8 @@
{
uint32_t levelNo = boost::lexical_cast<uint32_t>(level);
- if ((LOG_NONE <= levelNo && levelNo <= LOG_TRACE) ||
+ if ((boost::lexical_cast<uint32_t>(LOG_NONE) <= levelNo &&
+ levelNo <= boost::lexical_cast<uint32_t>(LOG_TRACE)) ||
levelNo == LOG_ALL)
{
return static_cast<LogLevel>(levelNo);