diff options
| author | ivost <ivost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-11-18 11:47:31 +0000 |
|---|---|---|
| committer | ivost <ivost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-11-18 11:47:31 +0000 |
| commit | c4625d673fb1c0377091ffa2366ddbd901b166f9 (patch) | |
| tree | 888ca0813765389f78e78517d5daf4e98cc5f986 /packages/libxml | |
| parent | 655b85a6dc89e64710fce95b0e5f5c825b23bdd4 (diff) | |
| download | fpc-c4625d673fb1c0377091ffa2366ddbd901b166f9.tar.gz | |
* fixed bug in float parser
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14210 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/libxml')
| -rw-r--r-- | packages/libxml/src/xmlxsd.pas | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/libxml/src/xmlxsd.pas b/packages/libxml/src/xmlxsd.pas index 644eda8ed3..a7f5d653d0 100644 --- a/packages/libxml/src/xmlxsd.pas +++ b/packages/libxml/src/xmlxsd.pas @@ -630,8 +630,6 @@ begin Inc(P); end; Value := Int; - if N then - Value := -Value; { allow '.' } if (P < L) and (P^ = '.') then @@ -672,6 +670,9 @@ begin end; end; + if N then + Value := -Value; + Result := True; end; |
