Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
vite
Commits
9c18ef6e
Commit
9c18ef6e
authored
15 years ago
by
THIBAULT Samuel
Browse files
Options
Downloads
Patches
Plain Diff
fix size type comparison
parent
32ea941c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/Core.cpp
+1
-1
1 addition, 1 deletion
src/core/Core.cpp
src/parser/Line.cpp
+1
-1
1 addition, 1 deletion
src/parser/Line.cpp
with
2 additions
and
2 deletions
src/core/Core.cpp
+
1
−
1
View file @
9c18ef6e
...
...
@@ -228,7 +228,7 @@ bool Core::draw_trace(const string & filename, const int format){
// Get the parser in function of the extension of the file
const
unsigned
int
position_of_dot
=
filename
.
find_last_of
(
'.'
);
const
string
::
size_type
position_of_dot
=
filename
.
find_last_of
(
'.'
);
if
(
position_of_dot
!=
string
::
npos
)
{
if
(
filename
.
substr
(
position_of_dot
)
==
".trace"
)
{
parser
=
new
ParserPaje
();
...
...
This diff is collapsed.
Click to expand it.
src/parser/Line.cpp
+
1
−
1
View file @
9c18ef6e
...
...
@@ -171,7 +171,7 @@ unsigned int Line::get_line_count() const {
int
Line
::
build_composite_token
(
const
string
&
line
,
int
index
)
{
// line[index] corresponds to the delimiter ie " or '
// We search the first one after this one
const
unsigned
int
delimiter
=
line
.
find_first_of
(
line
[
index
],
index
+
1
);
const
string
::
size_type
delimiter
=
line
.
find_first_of
(
line
[
index
],
index
+
1
);
if
(
delimiter
==
string
::
npos
)
{
throw
"overflow in buffer"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment