X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fduration-scheme.cc;h=6c29c62917b915d1209b953e426cef931cea85bf;hb=f8159a57125bbf52e96cad584d6c3756a39d5fc9;hp=d37147558112e5d64442d7a2fa44b7538341fe07;hpb=92e8f758e29427d28c413d1998c895b9c61932fd;p=lilypond.git diff --git a/lily/duration-scheme.cc b/lily/duration-scheme.cc index d371475581..6c29c62917 100644 --- a/lily/duration-scheme.cc +++ b/lily/duration-scheme.cc @@ -1,10 +1,21 @@ /* - duration.cc -- implement Duration + This file is part of LilyPond, the GNU music typesetter. - source file of the LilyPond music typesetter - - (c) 1997--2007 Jan Nieuwenhuizen + Copyright (C) 1997--2010 Jan Nieuwenhuizen Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "duration.hh" @@ -58,7 +69,7 @@ LY_DEFINE (ly_make_duration, "ly:make-duration", int dots = 0; if (dotcount != SCM_UNDEFINED) { - LY_ASSERT_TYPE (scm_is_integer, dotcount,2); + LY_ASSERT_TYPE (scm_is_integer, dotcount, 2); dots = scm_to_int (dotcount); } @@ -134,5 +145,5 @@ LY_DEFINE (ly_duration_factor, "ly:duration-factor", { LY_ASSERT_SMOB (Duration, dur, 1); Rational r = unsmob_duration (dur)->factor (); - return scm_cons (scm_from_int (r.num ()), scm_from_int (r.den ())); + return scm_cons (scm_from_int64 (r.num ()), scm_from_int64 (r.den ())); }