]> git.donarmstrong.com Git - lilypond.git/commit
Simplify a function pointer cast that GUB chokes on release/2.17.14-1
authorDavid Kastrup <dak@gnu.org>
Mon, 11 Mar 2013 07:54:03 +0000 (08:54 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 11 Mar 2013 07:54:03 +0000 (08:54 +0100)
commit0364212c01e7874c7f729f5c7080b58464d1b68a
tree73735ac60187afcb6b819bca8cec4986ab537cae
parentac45f7744dddc9831f5db3705dd3539cc6763bc2
Simplify a function pointer cast that GUB chokes on

It is conceivable that the C++ compiler has problems converting a
pointer to a C function (declared in a C language header) to a C++
function pointer.  Or that it has a compiler bug making it choke on
too complex casts.  This commit changes the cast

(SCM (*)()) apply_unpure_pure

to

(scm_t_subr) apply_unpure_pure

which hopefully addresses both of these potential candidates for GUB
compilation failure.
lily/unpure-pure-container.cc