[CM] clm delay offset for tap?
Kjetil Matheussen
k.s.matheussen at gmail.com
Wed Sep 28 07:48:25 PDT 2016
On Wed, Sep 28, 2016 at 4:01 PM, <bil at ccrma.stanford.edu> wrote:
> (int)-1 % (unsigned int)10 => 5
>>
>
> That's very interesting -- I never noticed this!
> Thanks very much for the bugfix -- I'll merge it into
> my sources today -- then I need to look at all
> the other % cases.
>
>
Yes, very good catch. Regarding unsigned integers, there have
been so many bugs caused by unsigned integers that I have
stopped using them completely in my software.
(The common bug is of course "(unsigned int)-1 < 0", and
variants of it, which is always false.)
I think Qt practices the same philosophy; no unsigned integers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20160928/c1e6594b/attachment.html>
More information about the Cmdist
mailing list