From 26dc86b5b6624177591909ae3d2c8d7d8bae9159 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 13 Jan 2010 10:35:08 +0100 Subject: D'oh --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index cad7ff1b..c22bce71 100644 --- a/src/utils.c +++ b/src/utils.c @@ -104,7 +104,7 @@ int poisson_noise(double expected) /* For large values of the mean, we get big problems with arithmetic. * In such cases, fall back on a Gaussian with the right variance. */ - if ( L > 100.0 ) return fake_poisson_noise(expected); + if ( expected > 100.0 ) return fake_poisson_noise(expected); L = exp(-expected); -- cgit v1.2.3