From 05365cc3853aa87e08e9c061fa03de9c6561c5c0 Mon Sep 17 00:00:00 2001 From: Teemu Murtola Date: Mon, 26 Oct 2009 11:32:29 +0100 Subject: [PATCH] Fixed selections introduced in commit 82ecf01... Selections like "charge 0 to 0.5" didn't work as expected unless all the values happened to be integer. --- src/gmxlib/selection/sm_keywords.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmxlib/selection/sm_keywords.c b/src/gmxlib/selection/sm_keywords.c index 2847d0b41a..67c799b7f0 100644 --- a/src/gmxlib/selection/sm_keywords.c +++ b/src/gmxlib/selection/sm_keywords.c @@ -388,7 +388,7 @@ evaluate_keyword_real(t_topology *top, t_trxframe *fr, t_pbc *pbc, { t_methoddata_kwreal *d = (t_methoddata_kwreal *)data; int n, i, j, jmin, jmax; - int val; + real val; out->u.g->isize = 0; n = d->n; -- 2.11.4.GIT