diff options
Diffstat (limited to 'flang-rt/lib/runtime/unit-map.cpp')
| -rw-r--r-- | flang-rt/lib/runtime/unit-map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flang-rt/lib/runtime/unit-map.cpp b/flang-rt/lib/runtime/unit-map.cpp index 41a03f3319d6..aa475d51b164 100644 --- a/flang-rt/lib/runtime/unit-map.cpp +++ b/flang-rt/lib/runtime/unit-map.cpp @@ -30,7 +30,7 @@ void UnitMap::Initialize() { ExternalFileUnit &UnitMap::NewUnit(const Terminator &terminator) { CriticalSection critical{lock_}; Initialize(); - Fortran::common::optional<int> n{freeNewUnits_.PopValue()}; + common::optional<int> n{freeNewUnits_.PopValue()}; if (!n) { n = emergencyNewUnit_++; } @@ -118,7 +118,7 @@ ExternalFileUnit *UnitMap::Find(const char *path, std::size_t pathLen) { for (int j{0}; j < buckets_; ++j) { for (Chain *p{bucket_[j].get()}; p; p = p->next.get()) { if (p->unit.path() && p->unit.pathLength() == pathLen && - std::memcmp(p->unit.path(), path, pathLen) == 0) { + runtime::memcmp(p->unit.path(), path, pathLen) == 0) { return &p->unit; } } |
