From e2f2aa58bb0856cc470728d104226c98003603ae Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 10 Mar 2016 21:54:33 +0000 Subject: [PATCH] Fix compiler error on 64-bit systems git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6523 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index cd92b23f5..830fde556 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1607,9 +1607,9 @@ void MainWindow::read_wav_file (QString const& fname) BWFFile file {QAudioFormat {}, fname}; file.open (BWFFile::ReadOnly); auto bytes_per_frame = file.format ().bytesPerFrame (); - qint64 max_bytes {std::min (std::size_t (m_TRperiod * RX_SAMPLE_RATE), - sizeof (dec_data.d2) / sizeof (dec_data.d2[0])) - * bytes_per_frame}; + qint64 max_bytes = std::min (std::size_t (m_TRperiod * RX_SAMPLE_RATE), + sizeof (dec_data.d2) / sizeof (dec_data.d2[0])) + * bytes_per_frame; auto n = file.read (reinterpret_cast (dec_data.d2), std::min (max_bytes, file.size ())); int frames_read = n / bytes_per_frame;