X-Git-Url: http://git.kpe.io/?p=wdq2wav.git;a=blobdiff_plain;f=wdq2wav.cpp;h=2ea87bf9ce0af8c94e7dc8b9e3e246f2196b3cd9;hp=81b1c9cc57ecc7727c2bb6fb22daac88b047d331;hb=HEAD;hpb=17965794138be7d1c619fd179c133878f704f4a7 diff --git a/wdq2wav.cpp b/wdq2wav.cpp index 81b1c9c..2ea87bf 100644 --- a/wdq2wav.cpp +++ b/wdq2wav.cpp @@ -256,7 +256,7 @@ wdq2wav (const char* wdq_fname, const int channel, const char *wav_fname, bool p std::ostringstream os3; time = wdq.m_time_acq_stop; tm = gmtime (&time); - os3 << "Time File Written: " << asctime(tm); + os3 << "Time File Written: " << asctime(tm); info_msg_sans_newline (os3.str().c_str()); std::ostringstream os4; os4 << "Samples: " << wdq.m_nSamples << @@ -287,7 +287,7 @@ wdq2wav (const char* wdq_fname, const int channel, const char *wav_fname, bool p if (! g_dry_run && !g_dont_demean) { std::cout << " (removing)\n"; int mean = nearest(wdq_channel.m_raw_mean); - for (int i = 0; i < wdq.m_nSamples; i++) + for (unsigned int i = 0; i < wdq.m_nSamples; i++) wdq_channel.m_data[i] -= mean; } else { std::cout << " (not removing)\n";