mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
fix compiler warning
This commit is contained in:
parent
69e0372cf0
commit
27d6839f46
@ -63,7 +63,7 @@ glob(const vector<string>& patterns)
|
|||||||
glob_retval = glob(iter->c_str(), GLOB_APPEND, NULL, &glob_results);
|
glob_retval = glob(iter->c_str(), GLOB_APPEND, NULL, &glob_results);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int path_index = 0; path_index < glob_results.gl_pathc; path_index++)
|
for(size_t path_index = 0; path_index < glob_results.gl_pathc; path_index++)
|
||||||
{
|
{
|
||||||
paths_found.push_back(glob_results.gl_pathv[path_index]);
|
paths_found.push_back(glob_results.gl_pathv[path_index]);
|
||||||
}
|
}
|
||||||
@ -243,7 +243,7 @@ format(const char* format, ...)
|
|||||||
{
|
{
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
else if( return_value >= buffer_size_bytes )
|
else if( return_value >= static_cast<int>(buffer_size_bytes) )
|
||||||
{
|
{
|
||||||
// Realloc and try again.
|
// Realloc and try again.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user