Skip to content

Commit

Permalink
src/atom_free.cpp: fix ambiguous call
Browse files Browse the repository at this point in the history
Fix the following build failure raised since
ec92734:

src/atom_free.cpp: In member function 'virtual void mp4v2::impl::MP4FreeAtom::Write()':
src/atom_free.cpp:46:71: error: call of overloaded 'min(uint64_t, unsigned int)' is ambiguous
         m_File.WriteBytes(freebuf, min(GetSize() - ix, sizeof(freebuf)));
                                                                       ^

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine authored and enzo1982 committed Mar 21, 2022
1 parent 4b8649f commit 369925f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atom_free.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void MP4FreeAtom::Write()

static uint8_t freebuf[1024];
for (uint64_t ix = 0; ix < GetSize(); ix += sizeof(freebuf)) {
m_File.WriteBytes(freebuf, min(GetSize() - ix, sizeof(freebuf)));
m_File.WriteBytes(freebuf, min(GetSize() - ix, (uint64_t)sizeof(freebuf)));
}

FinishWrite(use64);
Expand Down

0 comments on commit 369925f

Please sign in to comment.