aboutsummaryrefslogtreecommitdiff
path: root/libquadmath/printf/printf_fphex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/printf/printf_fphex.c')
-rw-r--r--libquadmath/printf/printf_fphex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libquadmath/printf/printf_fphex.c b/libquadmath/printf/printf_fphex.c
index a40a6b0..ddb4135 100644
--- a/libquadmath/printf/printf_fphex.c
+++ b/libquadmath/printf/printf_fphex.c
@@ -163,7 +163,8 @@ __quadmath_printf_fphex (struct __quadmath_printf_file *fp,
/* Fetch the argument value. */
{
- fpnum.value = **(const __float128 **) args[0];
+ memcpy (&fpnum.value, *(const void *const *) args[0],
+ sizeof (fpnum.value));
/* Check for special values: not a number or infinity. */
if (isnanq (fpnum.value))