Skip to content

Commit 1531eb6

Browse files
Yifan ZhuSchrodingerZhu
authored andcommitted
[libc] fix
1 parent b08f0e5 commit 1531eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/OSUtil/linux/vdso.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Symbol {
4747
constexpr Symbol(size_t idx) : sym(static_cast<VDSOSym>(idx)) {}
4848
constexpr cpp::string_view name() const { return symbol_name(sym); }
4949
constexpr cpp::string_view version() const { return symbol_version(sym); }
50-
operator size_t() const { return static_cast<size_t>(sym); }
50+
constexpr operator size_t() const { return static_cast<size_t>(sym); }
5151
};
5252

5353
// See https://refspecs.linuxfoundation.org/LSB_1.3.0/gLSB/gLSB/symverdefs.html

0 commit comments

Comments
 (0)