From 81c70b3afe559d229b972f16ed1a8c0e52f50158 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (laptop)" <j.wuttke@fz-juelich.de> Date: Wed, 14 Dec 2011 22:21:23 +0100 Subject: [PATCH] corr bug due to the *** int<->uint problem --- pub/src/expr.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pub/src/expr.cpp b/pub/src/expr.cpp index 8a2163c7..1aed95e7 100644 --- a/pub/src/expr.cpp +++ b/pub/src/expr.cpp @@ -35,9 +35,10 @@ CContext::CContext( uint _k, uint _j, uint _i ) return; // not sure whether k=-1 makes sense POlo f = NOlm::MOM[k]; - if ( j==(uint)-1 && f->nJ()==1 ) - j = 0; - else if ( j>=f->nJ() ) + if ( j==(uint)-1 ) { + if ( f->nJ()==1 ) + j = 0; + } else if ( j>=f->nJ() ) throw "invalid evaluation context, j="+strg(j)+">=nJ="+strg(f->nJ()); POld fd = P2D(f); -- GitLab