Skip to content

Commit

Permalink
Fixed double comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Dec 9, 2024
1 parent 00fd4fb commit 9ef1190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ target_link_libraries(pluginval PRIVATE
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(pluginval PRIVATE
-static-libstdc++)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_compile_options(pluginval PRIVATE
-Wfloat-equal -Wunused-result)
endif()

set (cmdline_docs_out "${CMAKE_CURRENT_LIST_DIR}/docs/Command line options.md")
Expand Down
2 changes: 1 addition & 1 deletion Source/TestUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ struct ScopedPluginDeinitialiser

~ScopedPluginDeinitialiser()
{
if (blockSize != 0 && sampleRate != 0)
if (blockSize != 0 && sampleRate > 0.0)
callPrepareToPlayOnMessageThreadIfVST3 (instance, sampleRate, blockSize);
}

Expand Down

0 comments on commit 9ef1190

Please sign in to comment.