summaryrefslogtreecommitdiff
path: root/libartbase/base/bit_struct_detail.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/bit_struct_detail.h')
-rw-r--r--libartbase/base/bit_struct_detail.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libartbase/base/bit_struct_detail.h b/libartbase/base/bit_struct_detail.h
index 68c2e4461f..60de1b68ef 100644
--- a/libartbase/base/bit_struct_detail.h
+++ b/libartbase/base/bit_struct_detail.h
@@ -85,7 +85,7 @@ struct HasUnderscoreField {
static constexpr FalseT Test(...);
public:
- static constexpr bool value = decltype(Test<T>(0))::value;
+ static constexpr bool value = decltype(Test<T>(nullptr))::value;
};
// Infer the type of the member of &T::M.