Browse Source

Merge pull request #150 from postromantic/master

Make Jint x86 and x64 compliant
Sébastien Ros 10 years ago
parent
commit
5e2acd7abf
1 changed files with 0 additions and 6 deletions
  1. 0 6
      Jint/Native/JsValue.cs

+ 0 - 6
Jint/Native/JsValue.cs

@@ -18,7 +18,6 @@ using System.Runtime.InteropServices;
 
 
 namespace Jint.Native
 namespace Jint.Native
 {
 {
-    [StructLayout(LayoutKind.Explicit)]
     [DebuggerTypeProxy(typeof(JsValueDebugView))]
     [DebuggerTypeProxy(typeof(JsValueDebugView))]
     public struct JsValue : IEquatable<JsValue>
     public struct JsValue : IEquatable<JsValue>
     {
     {
@@ -76,19 +75,14 @@ namespace Jint.Native
             _type = type;
             _type = type;
         }
         }
 
 
-        [FieldOffset(0)]
         private readonly bool _bool;
         private readonly bool _bool;
 
 
-        [FieldOffset(0)]
         private readonly double _double;
         private readonly double _double;
 
 
-        [FieldOffset(8)]
         private readonly ObjectInstance _object;
         private readonly ObjectInstance _object;
 
 
-        [FieldOffset(12)]
         private readonly string _string;
         private readonly string _string;
 
 
-        [FieldOffset(16)]
         private readonly Types _type;
         private readonly Types _type;
 
 
         [Pure]
         [Pure]