-
Notifications
You must be signed in to change notification settings - Fork 268
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
sciter.Value.Int() should return int32 #286
Comments
This applies to: * `Value.Int() int32` * `Value.SetInt(int32)` refs #286
This applies to: * `Value.Assign(int32)` * `Value.Assign(uint32)` * `Value.Assign(int64)` * `Value.Assign(uint32)` * `Value.Assign(int)` * `Value.Assign(uint)` refs #286
This applies to: * `Value.Assign(int32)` * `Value.Assign(uint32)` * `Value.Assign(int64)` * `Value.Assign(uint32)` * `Value.Assign(int)` * `Value.Assign(uint)` refs #286
This applies to: * `Value.Assign(int32)` * `Value.Assign(uint32)` * `Value.Assign(int64)` * `Value.Assign(uint32)` * `Value.Assign(int)` * `Value.Assign(uint)` refs #286
@AshfordN Well, I've fixed the However, what about |
I think it's appropriate to do the truncation, as long you're confident it wouldn't be a source of confusion in the future. In my opinion, the sciter docs justifies that behavior and should make it obvious. |
According to the docs, sciter integers are always 32-bit; however,
sciter.Value.Int()
returnsint
, which may be either 32-bit or 64-bit, depending on the system architecture (see here). This causes inconsistencies in the way negative numbers are parsed on different architectures. That is, -1 gets interpreted as 4294967295 on a 64-bit system; while it gets interpreted correctly (as -1) on a 32 bit system.The text was updated successfully, but these errors were encountered: