Skip to content

c_long is unsigned and signed...? #102

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

Closed
alichay opened this issue Sep 18, 2017 · 1 comment
Closed

c_long is unsigned and signed...? #102

alichay opened this issue Sep 18, 2017 · 1 comment

Comments

@alichay
Copy link

alichay commented Sep 18, 2017

In core:c.odin, c_long is set to both signed and unsigned variants of each size.

when ODIN_OS == "windows" {
	c_long :: i32;
} else when size_of(int) == 4 {
	c_long :: i32;
} else {
	c_long :: i64;
}

when ODIN_OS == "windows" {
	c_long :: u32;
} else when size_of(uint) == 4 {
	c_long :: u32;
} else {
	c_long :: u64;
}
@gingerBill
Copy link
Member

This is a bug. I am still working on the import system at the moment so this will be fixed when all the tests have been checked.

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

2 participants