From 6e1e1c616a5298ded6207a8d3cbbc16a8a6d7b03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <me@besser82.io>
Date: Fri, 19 Feb 2016 13:29:45 +0100
Subject: [PATCH] fix 'assuming signed overflow does not occur when assuming
that (X + c) < X is always false [-Wstrict-overflow]'
---
src/shogun/distributions/HMM.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shogun/distributions/HMM.cpp b/src/shogun/distributions/HMM.cpp
index 7bd5617..3bc2dd5 100644
--- a/src/shogun/distributions/HMM.cpp
+++ b/src/shogun/distributions/HMM.cpp
@@ -5026,7 +5026,7 @@ bool CHMM::append_model(CHMM* app_model, float64_t* cur_out, float64_t* app_out)
// only states of the cur_model can reach the
// first state
- if (i<N)
+ if ((uint32_t)i<(uint32_t)N)
n_a[(N+num_states)*N+i]=get_q(i);
// the second state is only connected to states of