Skip to content

Commit 800531f

Browse files
authored
Merge pull request #156 from ecmwf/fix/aarch64-strcmp-issue
Feature: use use C++ std::string::compare in StringContent::compareString
2 parents 418d5b7 + f3a8de5 commit 800531f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eckit/value/StringContent.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int StringContent::compare(const Content& other) const {
6666
}
6767

6868
int StringContent::compareString(const StringContent& other) const {
69-
return ::strcmp(value_.c_str(), other.value_.c_str());
69+
return value_.compare(other.value_);
7070
}
7171

7272
void StringContent::value(std::string& s) const {

0 commit comments

Comments
 (0)