Skip to content
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

fix implicit cast warnings #109

Merged
merged 8 commits into from
Feb 26, 2024
Merged

fix implicit cast warnings #109

merged 8 commits into from
Feb 26, 2024

Conversation

bartkrak
Copy link
Contributor

Comment on lines 38 to 46
def generate_arg_parse(argument, variable, %{type: :int64} = ctx) do
~g<({
ErlNifSInt64 temp = 0;
int success = enif_get_#{ctx.type}(env, #{argument}, &temp);
#{variable} = (int64_t)temp;
success;
})>
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in CodeGenerator.BaseTypes module responsible for type :int64, not here

bartkrak and others added 2 commits February 22, 2024 18:25
Co-authored-by: Feliks Pobiedziński <38541925+FelonEkonom@users.noreply.github.com>
@bartkrak bartkrak merged commit 7615a5e into master Feb 26, 2024
3 checks passed
@bartkrak bartkrak deleted the long-cast-warn-fix branch February 26, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants