[flang] Fix compilation error on macOS
authorTim Keith <tkeith@nvidia.com>
Mon, 10 Feb 2020 18:55:24 +0000 (10:55 -0800)
committerTim Keith <tkeith@nvidia.com>
Mon, 10 Feb 2020 18:55:24 +0000 (10:55 -0800)
commit6256fbe2007f37e60c6f6e8d9af88aa289078b9c
tree3dac0eed3c0d50197a8fb411f623b8790fd0859f
parentd3158fecf909bbc0cbe225d98943c751110042d2
[flang] Fix compilation error on macOS

The call to `std::min` failed to compile with GCC on macOS due to type
inference because `std::size_t` is `long unsigned int` but `std::int64_t`
is `long long int`.

Original-commit: flang-compiler/f18@c342575a9e0217fa3252b70b8ef3eac0236a58e3
Reviewed-on: https://github.com/flang-compiler/f18/pull/977
flang/runtime/buffer.h