Skip to content

Commit

Permalink
fix #95951 use signed chars for BeamMetric to fix ARM type limit issu…
Browse files Browse the repository at this point in the history
…e causing long stems
  • Loading branch information
Eric Fontaine committed Jan 29, 2016
1 parent dbd9e84 commit e56717e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,10 @@ bool Beam::slopeZero(const QList<ChordRest*>& cl)

struct Bm
{
char l; // stem len in 1/4 spatium units
char s; // beam slant in 1/4 spatium units
signed char l; // stem len in 1/4 spatium units
signed char s; // beam slant in 1/4 spatium units
Bm() : l(0), s(0) {}
Bm(char a, char b) : l(a), s(b) {}
Bm(signed char a, signed char b) : l(a), s(b) {}
static int key(int a, int b, int c) { return ((a & 0xff) << 16) | ((b & 0xff) << 8) | (c & 0xff); }
};

Expand Down

0 comments on commit e56717e

Please sign in to comment.