diff options
| author | jossgray <joss@jossgray.net> | 2016-12-05 20:31:32 +0000 |
|---|---|---|
| committer | jossgray <joss@jossgray.net> | 2016-12-05 20:31:32 +0000 |
| commit | 03aef01e6c556834277b0b23c5659aa83fa7949b (patch) | |
| tree | 78ad3bae7bc975508a9b85d8778b5e2e63727828 /tests/teststops.cpp | |
| parent | bba842587eeac6a008af5732c55fb895246356ab (diff) | |
Explicit casts to fix some warnings in msvc
Diffstat (limited to 'tests/teststops.cpp')
| -rw-r--r-- | tests/teststops.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/teststops.cpp b/tests/teststops.cpp index b388554..6159b88 100644 --- a/tests/teststops.cpp +++ b/tests/teststops.cpp @@ -107,8 +107,8 @@ int main( int argc, char *argv[] ) // Let RtAudio print messages to stderr.
adc->showWarnings( true );
- runtime = RUNTIME * 1000;
- pausetime = PAUSETIME * 1000;
+ runtime = static_cast<unsigned int>(RUNTIME * 1000);
+ pausetime = static_cast<unsigned int>(PAUSETIME * 1000);
// Set our stream parameters for a duplex stream.
bufferFrames = 512;
@@ -127,7 +127,7 @@ int main( int argc, char *argv[] ) oParams.deviceId = adc->getDefaultOutputDevice();
// First, test external stopStream() calls.
- mydata.pulseCount = PULSE_RATE * fs;
+ mydata.pulseCount = static_cast<unsigned int>(PULSE_RATE * fs);
mydata.nFrames = 50 * fs;
mydata.returnValue = 0;
try {
|
