summaryrefslogtreecommitdiff
path: root/absl/log
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-02-13 08:34:13 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-02-13 08:34:58 -0800
commit2312dbb66cbcb9ffab2fdbc1672211091d2b5286 (patch)
tree059fe27ba3b32e03ffe1860c341dc2209da2aa35 /absl/log
parentcde2f0eaaed3fb8581511cb5719d39172a5a2d81 (diff)
Fix missing constexpr on GetReferenceableValue overload
PiperOrigin-RevId: 509236105 Change-Id: I635f521aff106875f06bb93c332d3e437d0ad409
Diffstat (limited to 'absl/log')
-rw-r--r--absl/log/internal/check_op.h4
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