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

Bug of pointer's memory occupied #6

Open
lanyeeee opened this issue Jul 4, 2021 · 1 comment
Open

Bug of pointer's memory occupied #6

lanyeeee opened this issue Jul 4, 2021 · 1 comment

Comments

@lanyeeee
Copy link

lanyeeee commented Jul 4, 2021

the bug will appear if you choose to compile with x64 instead x86
image
image
because 1 pointer take 4 bytes in x86, take 8 bytes in x64

So if I want to compile with x64, I have to do like this way
image
"unsigned long long" take 8 bytes,same as the pointer

@btwael
Copy link
Owner

btwael commented Jul 4, 2021

Thank you for pointing this out. I will fix this soon. I will also consider moving to shared pointer instead of the reference-counting we implemented.

Feel free to report more issues if there are (mainly in x64) or pull requests.

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