mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-24 09:00:54 +08:00
valuesEqual converted both operands with toInt, which truncates a float64,
so 1.5 == 1 and -0.5 == 0 were true while 1.5 > 1 was also true. json.Decode
yields float64 numbers, so a hook testing m["amount"] == 0 matched a body
{"amount":0.5}. When either side is a float the comparison is now done in
float64.