On Fri Mar 11 03:14:00 2011, DKOGAN wrote:
Show quoted text> status_ok() currently checks for status == 0, instead it should check
for
Show quoted text> status eq 'LBFGS_OK'
From: Dima Kogan <dima@secretsauce.net>
Date: Sat, 17 Nov 2012 12:18:24 -0800
Subject: status_ok() now checks the error code correctly
Forwarded: yes
---
lib/Algorithm/LBFGS.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Algorithm/LBFGS.pm b/lib/Algorithm/LBFGS.pm
index ec29482..2cb7c68 100644
--- a/lib/Algorithm/LBFGS.pm
+++ b/lib/Algorithm/LBFGS.pm
@@ -88,7 +88,7 @@ sub get_status {
return $self->{status};
}
-sub status_ok { return get_status(@_) == 0; }
+sub status_ok { return get_status(@_) eq 'LBFGS_OK'; }
1;