summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2022-02-28 20:00:08 +0900
committerJooyung Han <jooyung@google.com>2022-03-17 09:56:28 +0000
commit6bb92e00b8ae85e095e73ffd48d5fa210177416a (patch)
treef42b140242aad08328daf8651151deb7f0ace1d0
parent500f3e04361f6ba255b9f39a1207e6b9e01802be (diff)
Cast to int for union tag
Union tag will be changed from `enum` to `enum class`. We need explicit casting with enum class. Bug: 225119187 Bug: 218912230 Test: m Merged-In: I2401e66dc9d8bc511a601fcdce365e5f823576d4 Change-Id: I2401e66dc9d8bc511a601fcdce365e5f823576d4 (cherry picked from commit 1c4e9829ec684f1c33447f522db516b14e011255)
-rw-r--r--sensors/aidl/default/multihal/ConvertUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensors/aidl/default/multihal/ConvertUtils.cpp b/sensors/aidl/default/multihal/ConvertUtils.cpp
index 7751fd2994..9b2d8fe309 100644
--- a/sensors/aidl/default/multihal/ConvertUtils.cpp
+++ b/sensors/aidl/default/multihal/ConvertUtils.cpp
@@ -173,7 +173,7 @@ void convertToHidlEvent(const AidlEvent& aidlEvent, V2_1Event* hidlEvent) {
}
default:
ALOGE("Invalid sensor additioanl info tag: %d",
- additionalInfo.payload.getTag());
+ static_cast<int32_t>(additionalInfo.payload.getTag()));
break;
}
break;