diff options
author | Abseil Team <absl-team@google.com> | 2023-02-13 08:34:13 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-13 08:34:58 -0800 |
commit | 2312dbb66cbcb9ffab2fdbc1672211091d2b5286 (patch) | |
tree | 059fe27ba3b32e03ffe1860c341dc2209da2aa35 | |
parent | cde2f0eaaed3fb8581511cb5719d39172a5a2d81 (diff) |
Fix missing constexpr on GetReferenceableValue overload
PiperOrigin-RevId: 509236105
Change-Id: I635f521aff106875f06bb93c332d3e437d0ad409
-rw-r--r-- | absl/log/internal/check_op.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/absl/log/internal/check_op.h b/absl/log/internal/check_op.h index 4907b89b..20b01b5e 100644 --- a/absl/log/internal/check_op.h +++ b/absl/log/internal/check_op.h @@ -371,7 +371,9 @@ inline constexpr unsigned short GetReferenceableValue( // NOLINT return t; } inline constexpr int GetReferenceableValue(int t) { return t; } -inline unsigned int GetReferenceableValue(unsigned int t) { return t; } +inline constexpr unsigned int GetReferenceableValue(unsigned int t) { + return t; +} inline constexpr long GetReferenceableValue(long t) { return t; } // NOLINT inline constexpr unsigned long GetReferenceableValue( // NOLINT unsigned long t) { // NOLINT |