Skip to content

Commit e2c9524

Browse files
committed
Fixed a linux build error by adding permissions to open
1 parent 4b3fafc commit e2c9524

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/TestUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static inline int countSubnormals (juce::AudioBuffer<float>& ab) noexcept
105105
int count = 0;
106106
iterateAudioBuffer (ab, [&count] (float s)
107107
{
108-
if (s != 0.0f && std::fpclassify (s) == FP_SUBNORMAL)
108+
if (std::fpclassify (s) != FP_ZERO && std::fpclassify (s) == FP_SUBNORMAL)
109109
++count;
110110
});
111111

Source/native/pluginval_native_posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ inline void writeStackTrace (const char* filePath, const int numLinesToSkip = 0)
5252
{
5353
// On Linux & Mac this is a signal handler, and therefore only "async-signal-safe" functions should be used.
5454
// This means nothing that uses malloc (juce::File, juce::String, std::string, std::vector etc.) or buffered I/O.
55-
int fd = open (filePath, O_RDWR | O_CREAT | O_TRUNC);
55+
int fd = open (filePath, O_RDWR | O_CREAT | O_TRUNC, 00644);
5656

5757
// Write stack traces and images
5858
{

0 commit comments

Comments
 (0)