From 38896c2ecd5e4adb33a2918d85e21a48588a29c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Thu, 6 Jun 2024 22:06:08 -0700 Subject: [PATCH] Use the right append in test std::string doesn't have an append(char) --- test/ctl/string_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ctl/string_test.cc b/test/ctl/string_test.cc index 0ef298618..311b86c83 100644 --- a/test/ctl/string_test.cc +++ b/test/ctl/string_test.cc @@ -361,19 +361,19 @@ main() // tests the small-string optimization on ctl::string char* d = s.data(); for (int i = 0; i < 23; ++i) { - s.append('a'); + s.append("a"); if (s.data() != d) { return 79 + i; } } - s.append('a'); + s.append("a"); if (s.data() == d) { return 103; } } else { // just check that append in a loop works for (int i = 0; i < 24; ++i) { - s.append('a'); + s.append("a"); } } if (s != "aaaaaaaaaaaaaaaaaaaaaaaa") {