From 5e4526e36f9978dbe2a6e0107930f1d5e1e6d1da Mon Sep 17 00:00:00 2001 From: tilpner Date: Thu, 20 Apr 2023 23:51:32 +0200 Subject: [PATCH] fix(format/chaper): change chapter id to i64 --- src/format/chapter/chapter.rs | 2 +- src/format/chapter/chapter_mut.rs | 2 +- src/format/context/output.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/format/chapter/chapter.rs b/src/format/chapter/chapter.rs index bdf5c9a..d5f7d56 100644 --- a/src/format/chapter/chapter.rs +++ b/src/format/chapter/chapter.rs @@ -22,7 +22,7 @@ impl<'a> Chapter<'a> { self.index } - pub fn id(&self) -> i32 { + pub fn id(&self) -> i64 { unsafe { (*self.as_ptr()).id } } diff --git a/src/format/chapter/chapter_mut.rs b/src/format/chapter/chapter_mut.rs index a055baa..ce28920 100644 --- a/src/format/chapter/chapter_mut.rs +++ b/src/format/chapter/chapter_mut.rs @@ -28,7 +28,7 @@ impl<'a> ChapterMut<'a> { } impl<'a> ChapterMut<'a> { - pub fn set_id(&mut self, value: i32) { + pub fn set_id(&mut self, value: i64) { unsafe { (*self.as_mut_ptr()).id = value; } diff --git a/src/format/context/output.rs b/src/format/context/output.rs index cab9007..4b90cd4 100644 --- a/src/format/context/output.rs +++ b/src/format/context/output.rs @@ -110,7 +110,7 @@ impl Output { pub fn add_chapter, S: AsRef>( &mut self, - id: i32, + id: i64, time_base: R, start: i64, end: i64,