Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a2cc742e
Commit
a2cc742e
authored
Feb 19, 2009
by
Moritz Kroll
Browse files
Fixed reading infinity floats from strings
[r25528]
parent
5028fbe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/fltcalc.c
View file @
a2cc742e
...
...
@@ -1228,6 +1228,12 @@ fp_value *fc_cast(const fp_value *value, const ieee_descriptor_t *desc, fp_value
else
return
fc_get_snan
(
desc
,
result
);
}
else
if
(
value
->
desc
.
clss
==
INF
)
{
if
(
value
->
sign
==
0
)
return
fc_get_plusinf
(
desc
,
result
);
else
return
fc_get_minusinf
(
desc
,
result
);
}
/* set the descriptor of the new value */
result
->
desc
.
exponent_size
=
desc
->
exponent_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment