-
Notifications
You must be signed in to change notification settings - Fork 76
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
Boolean not being set correctly #29
Comments
BTW, I was running this code on a Mac (10.11.6) using Node 6.5.0. I've also tried it on a Windows 7 machine and the code is behaving even more strangely there. Struct members not being set correctly. Second calls to my |
Sounds like an alignment issue to me. What does |
I'm getting the following:
|
shoot ... that was for the |
Here's a more complete code sample:
How would you suggest I get the size and alignment here? |
Hi. I'm using
ffi
andref-struct
in a project and ran into a strange issue today. I have a struct with several boolean members. All of these boolean members are being set correctly except for one and I can't for the life of me figure out what's going on. Here's some code:Struct definition
The member in question is
bEncrypted
. I have verified that the C code is sending the correct value but, no matter what it sends,bEncrypted
is always false. Yet,bInboundCall
,bHDAudio
, andbVirtualMeetingCall
all work as expected. I tried changing the type toref.types.int
and I do see 0 or 1 but thenbHDAudio
is showing false when it should be true.Consuming code
The
callProgressArray
is an array ofRPC_CALL_STATE
structs. This is a huge blocker for my team and project so any help you can provide would be greatly appreciated. Let me know if you have questions or need more detail. Thanks!The text was updated successfully, but these errors were encountered: