Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
e4aca56a
Commit
e4aca56a
authored
Sep 29, 2010
by
mattijs
Browse files
ENH: ISstream : read float (without .) larger than allowable integer
parent
1332dad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOstreams/Sstreams/ISstream.C
View file @
e4aca56a
...
...
@@ -252,7 +252,7 @@ Foam::Istream& Foam::ISstream::read(token& t)
}
else
{
char
*
endptr
;
char
*
endptr
=
NULL
;
if
(
asLabel
)
{
...
...
@@ -260,7 +260,7 @@ Foam::Istream& Foam::ISstream::read(token& t)
t
=
label
(
longVal
);
// return as a scalar if doesn't fit in a label
if
(
t
.
labelToken
()
!=
longVal
)
if
(
*
endptr
||
t
.
labelToken
()
!=
longVal
)
{
t
=
scalar
(
strtod
(
buf
,
&
endptr
));
}
...
...
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