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

64bit compile fix #236

Open
bottiger1 opened this issue May 5, 2024 · 2 comments
Open

64bit compile fix #236

bottiger1 opened this issue May 5, 2024 · 2 comments

Comments

@bottiger1
Copy link

bottiger1 commented May 5, 2024

for hl2sdk-tf2 maybe more

change int to intptr_t

#define MyOffsetOf( type, var ) ( (int)&((type*)0)->var )

#define MyOffsetOf( type, var ) ( (intptr_t)&((type*)0)->var )

@Kenzzer
Copy link
Member

Kenzzer commented May 14, 2024

What motivated this change ?

@bottiger1
Copy link
Author

it throws a compile error on 64bit

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