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

Bitshift when calling C function #10

Open
StamesJames opened this issue Jul 5, 2024 · 0 comments
Open

Bitshift when calling C function #10

StamesJames opened this issue Jul 5, 2024 · 0 comments

Comments

@StamesJames
Copy link

I tried the template and noticed that the integer returned by the C function get_n is 1092 but the integer that is getting printed by the CallC Vernacular command is 546.
For me it seams that at some point there happens a bitshift to the right because for the following other integers I get the following other prints:
return 1093 prints 546
return 1094 prints 547
return 0 prints 0
return -1 prints 2147483647
return -2 prints 2147483647
return -3 prints 2147483646
because I can't find any reason for this in the code I thought I write an Issue for this.

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

No branches or pull requests

1 participant