speechd-discuss
[Top][All Lists]
Advanced

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

Re: Is there an off-by-1 bug in notification callbacks?


From: Samuel Thibault
Subject: Re: Is there an off-by-1 bug in notification callbacks?
Date: Wed, 19 Aug 2020 18:02:07 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Samuel Thibault, le mer. 19 août 2020 17:55:18 +0200, a ecrit:
> Samuel Thibault, le mer. 19 août 2020 17:52:45 +0200, a ecrit:
> > Nolan Darilek, le mer. 19 août 2020 10:38:56 -0500, a ecrit:
> > > OK, sort of figured it out--I'm not strong in the C. :) Looks like the 
> > > state
> > > parameter is the index into the enum values, not the value itself.
> > 
> > It's not the index, it's the binary weight

That being said, it does not seem to be actually needed to be so. The
thing is this:

> Note the difference between SPDNotificationType and SPDNotification.

you are getting a SPDNotificationType, not a SPDNotification, so you
have to use values from SPDNotificationType.

Samuel



reply via email to

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