浏览代码

Fixed a bug in the explicit layout

Alastair 11 年之前
父节点
当前提交
2631e51020
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      Jint/Native/JsValue.cs

+ 3 - 4
Jint/Native/JsValue.cs

@@ -14,7 +14,6 @@ using Jint.Native.RegExp;
 using Jint.Native.String;
 using Jint.Native.String;
 using Jint.Runtime;
 using Jint.Runtime;
 using Jint.Runtime.Interop;
 using Jint.Runtime.Interop;
-using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
 
 
 namespace Jint.Native
 namespace Jint.Native
@@ -83,13 +82,13 @@ namespace Jint.Native
         [FieldOffset(0)]
         [FieldOffset(0)]
         private readonly double _double;
         private readonly double _double;
 
 
-        [FieldOffset(0)]
+        [FieldOffset(8)]
         private readonly ObjectInstance _object;
         private readonly ObjectInstance _object;
 
 
-        [FieldOffset(0)]
+        [FieldOffset(8)]
         private readonly string _string;
         private readonly string _string;
 
 
-        [FieldOffset(8)]
+        [FieldOffset(16)]
         private readonly Types _type;
         private readonly Types _type;
 
 
         [Pure]
         [Pure]