lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 5705: int->long in Stem::get_beaming and set_beaming (issue 56


From: dak
Subject: Re: Issue 5705: int->long in Stem::get_beaming and set_beaming (issue 561350044 by address@hidden)
Date: Mon, 03 Feb 2020 13:58:27 -0800

On 2020/02/03 21:33:11, Dan Eble wrote:
> Next try: http://codereview.appspot.com/565610043

It's probably more an academical remark, but a "kosher" way of doing
that might be using scm_to_int (scm_length (...)) instead of scm_ilength
(...).  This will take out the length in the form it has been produced
without a cast, throwing an error if it does not fit.  It is likely that
it comes at the cost of converting a size_t to SCM and then out again as
int which would be sort of ridiculous.  At the actual sizes we are
talking about, the cost would probably not be all that large.  Probably
not worth the trouble, but there might be other situations where such an
approach could prove more satisfactory.

https://codereview.appspot.com/561350044/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]