Skip to content

Commit

Permalink
Compositor: fix 64bit cast error from uint32_t to buffer_id (#842)
Browse files Browse the repository at this point in the history
* Compositor: fix 64bit cast error from uint32_t to buffer_id

* Update DmaBuffer.h

* Update DmaBuffer.h

---------

Co-authored-by: MFransen69 <[email protected]>
  • Loading branch information
bramoosterhuis and MFransen69 authored Oct 17, 2024
1 parent 5bf5aaf commit fa8b623
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Compositor {

Exchange::ICompositionBuffer::buffer_id Accessor() const override
{
return reinterpret_cast<Exchange::ICompositionBuffer::buffer_id>(_source.Identifier());
return static_cast<Exchange::ICompositionBuffer::buffer_id>(_source.Identifier());
}

uint32_t Stride() const override
Expand Down

0 comments on commit fa8b623

Please sign in to comment.