Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YGOPRO-520DIY
ygopro
Commits
298b43a8
Commit
298b43a8
authored
Nov 30, 2024
by
salix5
Committed by
GitHub
Nov 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update BufferIO::GetVal (#2623)
parent
c1cd59c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
gframe/bufferio.h
gframe/bufferio.h
+11
-7
No files found.
gframe/bufferio.h
View file @
298b43a8
...
...
@@ -256,14 +256,18 @@ public:
str
[
N
-
1
]
=
0
;
}
static
int
GetVal
(
const
wchar_t
*
pstr
)
{
unsigned
int
ret
=
0
;
while
(
*
pstr
>=
L'0'
&&
*
pstr
<=
L'9'
)
{
ret
=
ret
*
10
+
(
*
pstr
-
L'0'
);
pstr
++
;
if
(
*
pstr
>=
L'0'
&&
*
pstr
<=
L'9'
)
{
int
ret
{};
wchar_t
*
str_end
{};
ret
=
std
::
wcstol
(
pstr
,
&
str_end
,
10
);
if
(
*
str_end
==
0
)
return
ret
;
else
return
0
;
}
if
(
*
pstr
==
0
)
return
(
int
)
ret
;
return
0
;
else
return
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