-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
arity: short, int, or size_t #1337
Comments
Historically, arity was |
I see. Would you mind a few PRs? I see many warnings if I compile with -Wconversion. I guess 90% are easily solved using e.g. size_t, but a few of them may need auditing. |
I wouldn't mind getting all this in sync. Be careful though, If I recall well, I did a lot of these. Do them in small chunks, commit and run ... actually, I'm keener getting |
I see your point. Many warnings arise indeed from return values of different types. |
I encountered a runtime warning from a sanitizer for undefined behavior when I registered a foreign c function, complaining about a wrong type for the arity of my function. This seems to be inconsistent in the code (?)
pl-vmi.c, 4477: VMH_GOTO_AS_VMI(I_FEXITDET, (*f)(h0, DEF->functor->arity, &FNDET_CONTEXT));
pl-wrap.c, 258: size_t
pl-termhash.c, 525: int
foreign.doc: short
What is the correct type, size_t?
The text was updated successfully, but these errors were encountered: