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 1c4e9829ec)
This commit is contained in:
Jooyung Han
2022-02-28 20:00:08 +09:00
parent 500f3e0436
commit 6bb92e00b8

View File

@@ -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;