Correctly dereference 'fxbuf' when building with MSVC
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 30 Apr 2015 17:14:27 +0000 (18:14 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 30 Apr 2015 17:17:24 +0000 (18:17 +0100)
libs/pbd/fpu.cc

index 92c6d3e41ac14bd9b31a174a008259f3c7766cc4..4db7acdd2d9c9f800f21c3aa15be0120c754fb13 100644 (file)
@@ -141,10 +141,11 @@ FPU::FPU ()
                memset (*fxbuf, 0, 512);
                
 #ifdef COMPILER_MSVC
+               char *buf = *fxbuf;
                __asm {
-                       mov eax, fxbuf
-                       fxsave   [eax]
-              };
+                       mov eax, buf
+                       fxsave   [eax]
+               };
 #else
                asm volatile (
                        "fxsave (%0)"