2008/9/21  <[EMAIL PROTECTED]>:

> http://codereview.appspot.com/5889/diff/1/6
> File lily/moment.cc (right):
>
> http://codereview.appspot.com/5889/diff/1/6#newcode134
> Line 134: {
> If you want to be paranoid, you could check that the most significant
> bit is 1 here.

That would imply a negative number, wouldn't it?

Since we can only be sure that I64 is at least 64 bits, how about this?

if (((main_part_.den () >> (sizeof (I64) * 8 - 1) & 1)))
   error ("...");

Regards,
Neil


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to