Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2026)

Issue 561350044: Issue 5705: int->long in Stem::get_beaming and set_beaming (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 3 months ago by Dan Eble
Modified:
4 years, 2 months ago
Reviewers:
dak, dan, lemzwerg, hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

https://sourceforge.net/p/testlilyissues/issues/5705/ Fixes a type-conversion warning because scm_ilength () returns a long. Other changes are for consistency.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M lily/include/stem.hh View 1 chunk +2 lines, -2 lines 0 comments Download
M lily/stem.cc View 3 chunks +6 lines, -6 lines 1 comment Download
M lily/stem-engraver.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M lily/tuplet-number.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13
lemzwerg
LGTM
4 years, 3 months ago (2020-01-28 07:16:32 UTC) #1
hanwenn
sorry to complain late about this change. I understand that this gets rid of a ...
4 years, 2 months ago (2020-02-03 08:04:24 UTC) #2
dak
hanwenn@gmail.com writes: > sorry to complain late about this change. I understand that this gets ...
4 years, 2 months ago (2020-02-03 11:27:30 UTC) #3
dan_faithful.be
On Feb 3, 2020, at 06:27, David Kastrup <dak@gnu.org> wrote: > > hanwenn@gmail.com writes: > ...
4 years, 2 months ago (2020-02-03 13:40:15 UTC) #4
dak
Dan Eble <dan@faithful.be> writes: > I confess, I've not educated myself on how Guile stores ...
4 years, 2 months ago (2020-02-03 13:43:43 UTC) #5
dan_faithful.be
On Feb 3, 2020, at 08:43, David Kastrup <dak@gnu.org> wrote: > > Dan Eble <dan@faithful.be> ...
4 years, 2 months ago (2020-02-03 13:52:33 UTC) #6
hanwenn
On Mon, Feb 3, 2020 at 2:40 PM Dan Eble <dan@faithful.be> wrote: > > On ...
4 years, 2 months ago (2020-02-03 19:53:45 UTC) #7
dan_faithful.be
On Feb 3, 2020, at 14:53, Han-Wen Nienhuys <hanwenn@gmail.com> wrote: > 'long', the Stem class ...
4 years, 2 months ago (2020-02-03 20:21:03 UTC) #8
dak
Han-Wen Nienhuys <hanwenn@gmail.com> writes: > On Mon, Feb 3, 2020 at 2:40 PM Dan Eble ...
4 years, 2 months ago (2020-02-03 20:23:09 UTC) #9
Dan Eble
revert int->long
4 years, 2 months ago (2020-02-03 20:51:05 UTC) #10
Dan Eble
On 2020/02/03 20:51:05, Dan Eble wrote: > revert int->long Never mind this here. I forgot ...
4 years, 2 months ago (2020-02-03 21:11:23 UTC) #11
Dan Eble
Next try: http://codereview.appspot.com/565610043
4 years, 2 months ago (2020-02-03 21:33:11 UTC) #12
dak
4 years, 2 months ago (2020-02-03 21:58:27 UTC) #13
Message was sent while issue was closed.
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.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b