changeset 27421:edeacebc8800

maint: merge stable to default.
author Rik <rik@octave.org>
date Tue, 17 Sep 2019 13:57:40 -0700
parents 40fc49d73ce2 (current diff) 6bbbfba55989 (diff)
children e87289e352c0
files libinterp/corefcn/sysdep.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/sysdep.cc	Tue Sep 17 13:20:08 2019 -0700
+++ b/libinterp/corefcn/sysdep.cc	Tue Sep 17 13:57:40 2019 -0700
@@ -834,7 +834,7 @@
       return result;
 
     if (type == REG_DWORD)
-      value = octave_int32 (*data);
+      value = octave_int32 (*(reinterpret_cast<DWORD *> (data)));
     else if (type == REG_SZ || type == REG_EXPAND_SZ)
       value = string_vector (sys::u8_from_wstring (reinterpret_cast<wchar_t *> (data)));