Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cb52553 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Fix copy() using iterators from different containers

We fix up a std::copy that was using the wrong container for
the end().

Test: TreeHugger
Bug: 206867060
Change-Id: I5b7700029db6a513b6fdf03c3449be973d639df5
parent 27178421
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ void convertToHidlEvent(const AidlEvent& aidlEvent, V2_1Event* hidlEvent) {
            break;
        case AidlSensorType::POSE_6DOF:
            std::copy(std::begin(aidlEvent.payload.get<AidlEvent::EventPayload::pose6DOF>().values),
                      std::end(aidlEvent.payload.get<AidlEvent::EventPayload::data>().values),
                      std::end(aidlEvent.payload.get<AidlEvent::EventPayload::pose6DOF>().values),
                      hidlEvent->u.pose6DOF.data());
            break;
        case AidlSensorType::DYNAMIC_SENSOR_META: