fixed compiler warning comparing signed with unsigned. (Numsamples is obviously unsigned)

This commit is contained in:
Diego F. Asanza 2015-04-19 00:55:07 +02:00
parent c86154b42d
commit ec47609509

View File

@ -237,7 +237,7 @@ void SigSession::export_file(const std::string &name, QWidget* parent, const std
QFuture<void> future = QtConcurrent::run([&]{ QFuture<void> future = QtConcurrent::run([&]{
saveFileThreadRunning = true; saveFileThreadRunning = true;
unsigned char* datat = (unsigned char*)snapshot->get_data(); unsigned char* datat = (unsigned char*)snapshot->get_data();
int numsamples = snapshot->get_sample_count()*snapshot->unit_size(); unsigned int numsamples = snapshot->get_sample_count()*snapshot->unit_size();
GString *data_out; GString *data_out;
int usize = 8192; int usize = 8192;
int size = usize; int size = usize;