summaryrefslogtreecommitdiff
path: root/libs/pbd/fpu.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-04-30 18:14:27 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-04-30 18:17:24 +0100
commita3209b9b91f7efe5c8ee02c408fe5b11cba591f8 (patch)
treedc7bbad52d3d8435e02f01532b1fdc12b03147ca /libs/pbd/fpu.cc
parentfe3aafec1c02e67d27536564581b6c8f5101b229 (diff)
Correctly dereference 'fxbuf' when building with MSVC
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r--libs/pbd/fpu.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc
index 92c6d3e41a..4db7acdd2d 100644
--- a/libs/pbd/fpu.cc
+++ b/libs/pbd/fpu.cc
@@ -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)"