mirror of git://gcc.gnu.org/git/gcc.git
On 32-bit targets any values over 4GB would wrap and produce the wrong result. PR libstdc++/85632 use uintmax_t for arithmetic * src/filesystem/ops.cc (experimental::filesystem::space): Perform arithmetic in result type. * src/filesystem/std-ops.cc (filesystem::space): Likewise. * testsuite/27_io/filesystem/operations/space.cc: Check total capacity is greater than free space. * testsuite/experimental/filesystem/operations/space.cc: New. From-SVN: r259901 |
||
|---|---|---|
| .. | ||
| absolute.cc | ||
| canonical.cc | ||
| copy.cc | ||
| copy_file.cc | ||
| create_directories.cc | ||
| create_directory.cc | ||
| create_symlink.cc | ||
| current_path.cc | ||
| equivalent.cc | ||
| exists.cc | ||
| file_size.cc | ||
| is_empty.cc | ||
| last_write_time.cc | ||
| permissions.cc | ||
| proximate.cc | ||
| read_symlink.cc | ||
| relative.cc | ||
| remove.cc | ||
| remove_all.cc | ||
| space.cc | ||
| status.cc | ||
| symlink_status.cc | ||
| temp_directory_path.cc | ||
| weakly_canonical.cc | ||