]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/duration-scheme.cc
Issue 4378: Rewrite Protected_scm for static lifetime requirements
[lilypond.git] / lily / duration-scheme.cc
index f0a1b140fe41ed7cc210a17e9fa7f20d48f72247..55fbf382b23c9b0171ff90c7a5272a956832e35b 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2014 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1997--2015 Jan Nieuwenhuizen <janneke@gnu.org>
   Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
@@ -67,7 +67,7 @@ LY_DEFINE (ly_make_duration, "ly:make-duration",
   LY_ASSERT_TYPE (scm_is_integer, length, 1);
 
   int dots = 0;
-  if (dotcount != SCM_UNDEFINED)
+  if (!SCM_UNBNDP (dotcount))
     {
       LY_ASSERT_TYPE (scm_is_integer, dotcount, 2);
       dots = scm_to_int (dotcount);