WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
6ceeafed
Commit
6ceeafed
authored
Dec 08, 2016
by
Mathias Bavay
Browse files
Small things that were making vc++ unhappy...
parent
c8083e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
meteoio/plugins/ALPUG.cc
View file @
6ceeafed
...
...
@@ -305,7 +305,7 @@ void ALPUG::readMetoFile(const size_t& station_index, const Date& dateStart, con
}
for
(
int
year
=
start_year
;
year
<=
end_year
;
++
year
)
{
stringstream
ss
;
o
stringstream
ss
;
ss
<<
year
;
const
std
::
string
filename
(
ss
.
str
().
substr
(
2
,
2
)
+
station_id
+
dflt_extension
);
if
(
std
::
find
(
dirlist
.
begin
(),
dirlist
.
end
(),
filename
)
==
dirlist
.
end
())
//this file does not exist
...
...
meteoio/plugins/libsmet.cc
View file @
6ceeafed
...
...
@@ -1333,7 +1333,7 @@ void SMETReader::copy_file_data(const std::string& date_stop, std::ifstream& fin
if
(
SMETCommon
::
readLineToVec
(
line
,
tmp_vec
)
==
nr_of_data_fields
)
{
const
string
&
current_timestamp
=
tmp_vec
[
timestamp_field
];
const
size_t
cmp_len
=
std
::
min
(
date_stop_len
,
current_timestamp
.
length
());
const
size_t
cmp_len
=
min
(
date_stop_len
,
current_timestamp
.
length
());
if
(
current_timestamp
.
compare
(
0
,
cmp_len
,
date_stop
)
>=
0
)
break
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment