aboutsummaryrefslogtreecommitdiff
path: root/gdb/java-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/java-exp.y')
-rw-r--r--gdb/java-exp.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/java-exp.y b/gdb/java-exp.y
index fd6db48..716dbe0 100644
--- a/gdb/java-exp.y
+++ b/gdb/java-exp.y
@@ -652,9 +652,9 @@ parse_number (p, len, parsed_float, putithere)
p[len] = 0; /* null-terminate the token */
if (sizeof (putithere->typed_val_float.dval) <= sizeof (float))
- num = sscanf (p, "%g%c", &putithere->typed_val_float.dval, &c);
+ num = sscanf (p, "%g%c", (float *) &putithere->typed_val_float.dval, &c);
else if (sizeof (putithere->typed_val_float.dval) <= sizeof (double))
- num = sscanf (p, "%lg%c", &putithere->typed_val_float.dval, &c);
+ num = sscanf (p, "%lg%c", (double *) &putithere->typed_val_float.dval, &c);
else
{
#ifdef PRINTF_HAS_LONG_DOUBLE