From 5514c458a3ae1cdccc3a5b8868efb17b22a536d3 Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Sun, 2 Aug 2015 19:24:58 +0100 Subject: [PATCH] Remove redundant cast --- src/Logic/SubtitleFormats/TSB4.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logic/SubtitleFormats/TSB4.cs b/src/Logic/SubtitleFormats/TSB4.cs index a5b69b3d3..bd6d5db4e 100644 --- a/src/Logic/SubtitleFormats/TSB4.cs +++ b/src/Logic/SubtitleFormats/TSB4.cs @@ -63,7 +63,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats { if (array[i] == 84 && array[i + 1] == 73 && array[i + 2] == 84 && array[i + 3] == 76 && array[i + 8] == 84 && array[i + 9] == 73 && array[i + 10] == 77 && array[i + 11] == 69) // TITL + TIME { - int endOfText = (int)array[i + 4]; + int endOfText = array[i + 4]; int start = array[i + 16] + array[i + 17] * 256; if (array[i + 18] != 32) @@ -84,7 +84,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats string text = Encoding.Default.GetString(array, textStart, length); // text = Encoding.Default.GetString(array, i + 53, endOfText - 47); text = text.Trim('\0').Replace("\0", " ").Trim(); - var item = new Paragraph(text, (double)SubtitleFormat.FramesToMilliseconds((double)start), (double)SubtitleFormat.FramesToMilliseconds((double)end)); + var item = new Paragraph(text, FramesToMilliseconds(start), FramesToMilliseconds(end)); subtitle.Paragraphs.Add(item); i += endOfText + 5; }