Fix MSVC-warning about truncation of constant in tst_qaudiobuffer.cpp.

Change-Id: If9e239be38f8d15542ab9bf3a74bccf0a43b4e69
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
Friedemann Kleint
2014-01-24 14:53:06 +01:00
committed by The Qt Project
parent 04b7e05375
commit deaeb676eb

View File

@@ -78,7 +78,7 @@ tst_QAudioBuffer::tst_QAudioBuffer()
mFormat.setSampleRate(10000);
mFormat.setCodec("audio/pcm");
QByteArray b(4000, 0x80);
QByteArray b(4000, char(0x80));
mNull = new QAudioBuffer;
mEmpty = new QAudioBuffer(500, mFormat); // 500 stereo frames of 16 bits -> 2KB
mFromArray = new QAudioBuffer(b, mFormat);