Repository navigation
Use WPARAM as uint64_t and LPARAM as int64_t - #3256
Conversation
|
WPARAM and LPARAM are 32-bit in 32-bit executables |
|
Hm, odd - well, since we never pass the WPARAM / LPARAM back to Win32, it's probably fine |
|
What would be the problem in passing back to Win32? |
|
@omrilitov You'd truncate the value, since you'd extend it out to 64-bits, V8 would give you back a different 64-bit number that may or may not fit into 32-bits, then you smush it back into a WPARAM |
|
Well, sometimes WPARAM and LPARAM are pointers to structs, So maybe another solution should be considered. |
|
Hm, if you want to guarantee pointer-sized'ness, maybe a |
|
The same problem exists here #3219 |
|
I hope I didn't over complicate the use of buffers but it seems to do the job just fine 😄 |
|
Using |
Use WPARAM as uint64_t and LPARAM as int64_t
As seen in https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx
WPARAM is unsigned and LPARAM is signed