Fix MSVC-warning about truncation of constant in tst_qaudiobuffer.cpp.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Fri, 24 Jan 2014 13:53:06 +0000 (14:53 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 29 Jan 2014 09:18:42 +0000 (10:18 +0100)
Change-Id: If9e239be38f8d15542ab9bf3a74bccf0a43b4e69
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
tests/auto/unit/qaudiobuffer/tst_qaudiobuffer.cpp

index 5fbdffb..d5e284e 100644 (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);