[PATCH] jscript: Force base type of _jsval_t to be ULONGLONG instead of double.

Dmitry Timoshkov dmitry at baikal.ru
Wed Mar 24 06:33:18 CDT 2021


I guess that I should send the proposed fix to wine-devel instead of
waiting for response in the bug report.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50845
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/jscript/jsval.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/jscript/jsval.h b/dlls/jscript/jsval.h
index 963f59f6a08..d930d35f4e4 100644
--- a/dlls/jscript/jsval.h
+++ b/dlls/jscript/jsval.h
@@ -54,6 +54,7 @@ typedef enum {
 struct _jsval_t {
 #ifdef JSVAL_DOUBLE_LAYOUT_PTR32
     union {
+        ULONGLONG ull;
         double n;
         struct {
             union {
@@ -69,9 +70,10 @@ struct _jsval_t {
 #else
     jsval_type_t type;
     union {
+        ULONGLONG ull;
+        double n;
         IDispatch *obj;
         jsstr_t *str;
-        double n;
         BOOL b;
         VARIANT *v;
     } u;
-- 
2.30.2




More information about the wine-devel mailing list