mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[locale] Reduce warnings for gcount()
- The read is at most sizeof(arr), so int is fine. Do the cast explicitly.
This commit is contained in:
parent
620d2a769a
commit
b10c7ad9c6
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ int main(int argc, char** argv)
|
|||
while( !std::cin.eof() ) {
|
||||
char arr[1024];
|
||||
std::cin.read(arr, sizeof(arr));
|
||||
int s = std::cin.gcount();
|
||||
int s = static_cast<int>( std::cin.gcount() );
|
||||
ba.append(arr, s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue