alliedmodders / hl2sdk

Half-Life 2 SDK Mirrors
https://github.com/valvesoftware
341 stars 158 forks source link

64bit compile fix #236

Closed bottiger1 closed 3 weeks ago

bottiger1 commented 1 month ago

for hl2sdk-tf2 maybe more

change int to intptr_t

https://github.com/alliedmodders/hl2sdk/blob/78dab58646d5983c77af44c45a877b89196eb82c/public/networkvar.h#L25

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

Kenzzer commented 1 month ago

What motivated this change ?

bottiger1 commented 1 month ago

it throws a compile error on 64bit