Hi SketchUp team,
I have a problem. I found a bug in UI::HTMLDialog
It returns me an incorrect value in ruby.
Sketchup version 2021.1.332(Windows)
Sketchup version 2021.1.331(MacOS)
It is not really a “bug” instead this behaviour comes because of differences of Ruby hashes vs. JavaScript object…
(Someone with better knowledge than mine, may explain better )
Better to use JSON to communicate between…e.g. :
Thank you for answering my question.
I know what you said about JSON serialization, but that’s not the problem.
is it correct that the number 2220166733 becomes -2074800563 ?
This is an int overflow. The max value of int on system where the type is 32bit is 2147483647. 2220166733 is larger, but somewhere being reinterpreted as int which will make it represent -2074800563.
Example can be seen in this Compiler Explorer example: Compiler Explorer