]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/duration.cc
Release: bump Welcome versions.
[lilypond.git] / lily / duration.cc
index 0b1001954072852ea366ad18c257aa19ef0fb4e0..880b22c46a3575d1fc37bf78943d45992ca1ba8b 100644 (file)
@@ -136,7 +136,7 @@ Duration::to_string () const
   return s;
 }
 
-const char Duration::type_p_name_[] = "ly:duration?";
+const char * const Duration::type_p_name_ = "ly:duration?";
 
 
 int
@@ -152,8 +152,8 @@ Duration::print_smob (SCM port, scm_print_state *) const
 SCM
 Duration::equal_p (SCM a, SCM b)
 {
-  Duration *p = (Duration *) SCM_CELL_WORD_1 (a);
-  Duration *q = (Duration *) SCM_CELL_WORD_1 (b);
+  Duration *p = unsmob<Duration> (a);
+  Duration *q = unsmob<Duration> (b);
 
   bool eq = p->dots_ == q->dots_
             && p->durlog_ == q->durlog_