Correctly handle negative 0
authorLars Knoll <lars.knoll@digia.com>
Wed, 12 Dec 2012 19:34:31 +0000 (20:34 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Dec 2012 10:49:14 +0000 (11:49 +0100)
commit5cf108e7a530229f4c9fa2751ec0aac42924fea6
tree3f017801f431315831dd21d9d0ee3ce87bb13a5b
parent47b01bb7e5ac8812470d5840534aeaa2eb342164
Correctly handle negative 0

-0 and +0 are two distinct numbers. Since integers only
have one 0 value, we need to convert the number to double
when negating a 0

Change-Id: I915c4bd7168eece947fa91c6b65137a873d4f75a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_runtime.h
qv4isel_masm.cpp
qv4isel_util_p.h