[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57939] audioplayer.play crashes with exceptio
From: |
Armin Müller |
Subject: |
[Octave-bug-tracker] [bug #57939] audioplayer.play crashes with exception when called with nbits = 32 |
Date: |
Sun, 31 May 2020 09:25:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 |
Follow-up Comment #7, bug #57939 (project octave):
I wonder how this code can run successfully.
https://hg.savannah.gnu.org/hgweb/octave/rev/41750ce4752c
if (nbits != 8 || nbits != 16 || nbits != 24)
error ("audioplayer: NBITS must be 8, 16, or 24");
It will always trigger an error message, unless || is replaced by &&
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57939>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/