-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surge-VST2: (macOS) Non-constant-expression cannot be narrowed from type 'int' to 'char' in initializer list #79
Comments
Xcode suggests fixing it, so.. if I click on Fix, this:
changes into this:
is this overall something safe that I can commit to the repo? |
That change is OK but a bit weird looking. If I were reviewing the code I would suggest you make it clearer with
Which is basically the same thing just a bit more readable. I’d also ask if someone had confirmed that 0 <= digit < 10 somewhere earlier in the code. |
@asimilon how did you solve this issue on your branch? :o |
The only source changes I had to make were removing
everything else compiled as is (for VST2, VST3 had a ton of errors, and AU wouldn't go anywhere due to missing files). |
@asimilon is this change in a PR and has it been merged? if so, i could always close this ticket :) |
Those changes I detailed above aren't necessary any more (for me at least). I was building successfully without them (XCode9 and brew llvm) after the #92 merge. |
ok, closing ticket :) |
am trying to get macOS VST2 to compile and am getting this error in audioeffect.cpp:
What should I do about it?
The text was updated successfully, but these errors were encountered: