Blob Blame History Raw
From d9c0c52813efadfaa715fb4f1f74bb29aa6dc726 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <me@besser82.io>
Date: Thu, 18 Feb 2016 11:40:11 +0100
Subject: [PATCH] fix 'comparison of constant ''\012'' with boolean expression
 is always false [-Wbool-compare]'

---
 src/shogun/features/StringFileFeatures.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shogun/features/StringFileFeatures.cpp b/src/shogun/features/StringFileFeatures.cpp
index 642017a..07c6f28 100644
--- a/src/shogun/features/StringFileFeatures.cpp
+++ b/src/shogun/features/StringFileFeatures.cpp
@@ -27,7 +27,7 @@ template <class ST> ST* CStringFileFeatures<ST>::get_line(uint64_t& len, uint64_
 	{
 		ST c=s[i];
 
-		if (c == '\n')
+		if ((char) c == '\n')
 		{
 			ST* line=&s[offs];
 			len=i-offs;