Skip to content

Commit e0c1095

Browse files
authored
fix: PastLastSlash bug (#509)
fix: PastLastSlash bug (#507)
1 parent b20b32a commit e0c1095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/common/logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace bustub {
4242
using cstr = const char *;
4343

4444
static constexpr auto PastLastSlash(cstr a, cstr b) -> cstr {
45-
return *a == '\0' ? b : *b == '/' ? PastLastSlash(a + 1, a + 1) : PastLastSlash(a + 1, b);
45+
return *a == '\0' ? b : *a == '/' ? PastLastSlash(a + 1, a + 1) : PastLastSlash(a + 1, b);
4646
}
4747

4848
static constexpr auto PastLastSlash(cstr a) -> cstr { return PastLastSlash(a, a); }

0 commit comments

Comments
 (0)