-
Notifications
You must be signed in to change notification settings - Fork 59
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
C2118 - negative subscript #54
Comments
Hi Klaus, It would be good to narrow it down to whether this is an SDK 8.0.3 --> 8.2.0 issue or a VS 2019 --> VS 2022 one. Have you tried different combinations? It's hard to tell much more without more context as well. A negative subscript sounds like the static assertions we use to check that the correct type is passed is failing. For example, C74_STATIC_ASSERT(structmembersize(structname,structmember)==sizeof(float)) If the type |
Hi Isabel, thank you for the hint. Changing to CLASS_ATTR_DOUBLE solved my issue. Thanks a lot; i am happy; |
CLASS_ATTR_FLOAT(c, "middle_c", ATTR_FLAGS_NONE, t_scl2list, t_sclMiddleC);
and
CLASS_ATTR_FLOAT_ARRAY(c, "scl2list", ATTR_FLAGS_NONE, t_scl2list, t_sclMappingValues,1024);
generates compiler error C2118 on VS 2022.
it was working with sdk 8.0.3
Best regards
Klaus
The text was updated successfully, but these errors were encountered: