Skip to content

Commit 85722f9

Browse files
committed
chore: braces in SafeString
1 parent 8ca35aa commit 85722f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class SafeString : public std::string {
2323
SafeString() = default;
2424
SafeString(const std::string &s) : std::string(s) {}
2525
const char &operator[](size_t i) const {
26-
if (i >= size())
26+
if (i >= size()) {
2727
printf("ERROR string index access index=%zu str=%s\n", i, c_str());
28+
}
2829
return at(i);
2930
}
3031
};

0 commit comments

Comments
 (0)