From 4ea61ef6f236070176304854bb58dc0906ddb42b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 8 May 2009 17:55:11 +0200 Subject: [PATCH] Fix two more possible cases of accidentally converting a signed to an unsigned integer. --- src/common/chapters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/chapters.cpp b/src/common/chapters.cpp index 2647233e0..163eee2cb 100644 --- a/src/common/chapters.cpp +++ b/src/common/chapters.cpp @@ -399,7 +399,7 @@ get_chapter_start(KaxChapterAtom &atom, int64_t value_if_not_found) { KaxChapterTimeStart *start = FINDFIRST(&atom, KaxChapterTimeStart); - return NULL == start ? value_if_not_found : uint64(*start); + return NULL == start ? value_if_not_found : int64_t(uint64(*start)); } /** \brief Get the end timecode for a chapter atom. @@ -418,7 +418,7 @@ get_chapter_end(KaxChapterAtom &atom, int64_t value_if_not_found) { KaxChapterTimeEnd *end = FINDFIRST(&atom, KaxChapterTimeEnd); - return NULL == end ? value_if_not_found : uint64(*end); + return NULL == end ? value_if_not_found : int64_t(uint64(*end)); } /** \brief Get the name for a chapter atom.