Skip to content

Commit 9ef1190

Browse files
committed
Fixed double comparison
1 parent 00fd4fb commit 9ef1190

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ target_link_libraries(pluginval PRIVATE
9393
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
9494
target_link_libraries(pluginval PRIVATE
9595
-static-libstdc++)
96+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
97+
target_compile_options(pluginval PRIVATE
98+
-Wfloat-equal -Wunused-result)
9699
endif()
97100

98101
set (cmdline_docs_out "${CMAKE_CURRENT_LIST_DIR}/docs/Command line options.md")

Source/TestUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ struct ScopedPluginDeinitialiser
303303

304304
~ScopedPluginDeinitialiser()
305305
{
306-
if (blockSize != 0 && sampleRate != 0)
306+
if (blockSize != 0 && sampleRate > 0.0)
307307
callPrepareToPlayOnMessageThreadIfVST3 (instance, sampleRate, blockSize);
308308
}
309309

0 commit comments

Comments
 (0)