A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use type bool for boolean variables.
[simgrid.git]
/
src
/
surf
/
xml
/
surfxml_parseplatf.cpp
diff --git
a/src/surf/xml/surfxml_parseplatf.cpp
b/src/surf/xml/surfxml_parseplatf.cpp
index
7800a14
..
756c7d6
100644
(file)
--- a/
src/surf/xml/surfxml_parseplatf.cpp
+++ b/
src/surf/xml/surfxml_parseplatf.cpp
@@
-62,7
+62,7
@@
void parse_platform_file(const std::string& file)
{
const char* cfile = file.c_str();
int len = strlen(cfile);
-
int is_lua
= len > 3 && file[len - 3] == 'l' && file[len - 2] == 'u' && file[len - 1] == 'a';
+
bool is_lua
= len > 3 && file[len - 3] == 'l' && file[len - 2] == 'u' && file[len - 1] == 'a';
sg_platf_init();