X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgeneral-scheme.cc;h=b9507766894df7216cdfa1de7eb65026114a1879;hb=dd8a0b7cc3280f273e66d20c72f1d4097dc6645a;hp=299190b42841734b34ef8e86635bfccc4cb710b6;hpb=0e13fe23a0698ae81b9e618b15841b8a88919ed7;p=lilypond.git diff --git a/lily/general-scheme.cc b/lily/general-scheme.cc index 299190b428..b950776689 100644 --- a/lily/general-scheme.cc +++ b/lily/general-scheme.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2011 Jan Nieuwenhuizen + Copyright (C) 1998--2012 Jan Nieuwenhuizen Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -99,7 +99,6 @@ LY_DEFINE (ly_gulp_file, "ly:gulp-file", return scm_from_locale_stringn (contents.c_str (), contents.length ()); } - LY_DEFINE (ly_dir_p, "ly:dir?", 1, 0, 0, (SCM s), "Is @var{s} a direction? Valid directions are @w{@code{-1}}," @@ -107,7 +106,7 @@ LY_DEFINE (ly_dir_p, "ly:dir?", " left or down, @code{1}@tie{}represents right or up, and @code{0}" " represents a neutral direction.") { - if (scm_is_number (s)) + if (scm_is_integer (s)) { int i = scm_to_int (s); return (i >= -1 && i <= 1) ? SCM_BOOL_T : SCM_BOOL_F;