]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/rational.cc
* The grand 2005-2006 replace.
[lilypond.git] / flower / rational.cc
index 5bcf7b39609396fe56908822e8190d209c12db31..b61c84e014a78922a17bcb6f33ce59f1b71786f9 100644 (file)
@@ -3,13 +3,14 @@
 
   source file of the Flower Library
 
-  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "rational.hh"
 
 #include <cmath>
 #include <cstdlib>
+using namespace std;
 
 #include "string-convert.hh"
 #include "libc-extension.hh"
@@ -286,7 +287,7 @@ Rational::to_string () const
 int
 Rational::to_int () const
 {
-  return num () / den ();
+  return (int) num () / den ();
 }
 
 int