Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0131a9c4
Commit
0131a9c4
authored
Aug 26, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Suport + sign in exponential literals.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
06c43eac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lex.c
dlls/vbscript/lex.c
+4
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+1
-0
No files found.
dlls/vbscript/lex.c
View file @
0131a9c4
...
...
@@ -302,9 +302,12 @@ static int parse_numeric_literal(parser_ctx_t *ctx, void **ret)
if
(
*
ctx
->
ptr
==
'e'
||
*
ctx
->
ptr
==
'E'
)
{
int
e
=
0
,
sign
=
1
;
if
(
*++
ctx
->
ptr
==
'-'
)
{
ctx
->
ptr
++
;
if
(
*
ctx
->
ptr
==
'-'
)
{
ctx
->
ptr
++
;
sign
=
-
1
;
}
else
if
(
*
ctx
->
ptr
==
'+'
)
{
ctx
->
ptr
++
;
}
if
(
!
iswdigit
(
*
ctx
->
ptr
))
{
...
...
dlls/vbscript/tests/lang.vbs
View file @
0131a9c4
...
...
@@ -41,6 +41,7 @@ Call ok(10. = 10, "10. <> 10")
Call
ok
(
&
hffFFffFF&
=
-
1
,
"&hffFFffFF& <> -1"
)
Call
ok
(
&
hffFFffFF&
=
-
1
,
"&hffFFffFF& <> -1"
)
Call
ok
(
34
e5
=
3400000
,
"34e5 <> 3400000"
)
Call
ok
(
34
e
+
5
=
3400000
,
"34e+5 <> 3400000"
)
Call
ok
(
56.789
e5
=
5678900
,
"56.789e5 = 5678900"
)
Call
ok
(
56.789
e
-
2
=
0.56789
,
"56.789e-2 <> 0.56789"
)
Call
ok
(
1
e
-
94938484
=
0
,
"1e-... <> 0"
)
...
...
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