Skip to content

Commit 72cd9b9

Browse files
committed
MSVC compatibility
1 parent 76ee50e commit 72cd9b9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Intern/rayx-core/src/CanonicalizePath.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ std::filesystem::path RAYX_API canonicalizeUserPath(const std::filesystem::path&
3030

3131
uint32_t* readFile(uint32_t& length, const char* filename);
3232

33-
std::vector<uint8_t> readFile(const std::string& filename, const uint32_t count = 0);
33+
std::vector<uint8_t> RAYX_API readFile(const std::string& filename, const uint32_t count = 0);
3434

35-
void writeFile(const std::vector<uint8_t>& data, const std::string& filename, const uint32_t count = 0);
35+
void RAYX_API writeFile(const std::vector<uint8_t>& data, const std::string& filename, const uint32_t count = 0);

Intern/rayx-core/tests/testShader.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <numeric>
2+
13
#include "Tracer/CpuTracer.h"
24
#include "setupTests.h"
35

@@ -14,9 +16,9 @@ TEST_F(TestSuite, testUniformRandom) {
1416
}
1517

1618
TEST_F(TestSuite, testNormalRandom) {
17-
uint64_t ctr = 13; // seed value
18-
double mu = 0.0; // mean
19-
double sigma = 1.0; // standard deviation
19+
uint64_t ctr = 13; // seed value
20+
double mu = 0.0; // mean
21+
double sigma = 1.0; // standard deviation
2022

2123
// Vectors to store the generated random numbers and their z-scores
2224
std::vector<double> random_numbers;
@@ -25,7 +27,7 @@ TEST_F(TestSuite, testNormalRandom) {
2527
for (int i = 0; i < 1000; i++) {
2628
double Z = CPU_TRACER::squaresNormalRNG(ctr, mu, sigma);
2729
random_numbers.push_back(Z);
28-
30+
2931
// Calculate z-score and store
3032
double z_score = (Z - mu) / sigma;
3133
z_scores.push_back(z_score);
@@ -47,7 +49,6 @@ TEST_F(TestSuite, testNormalRandom) {
4749
CHECK(count > int(0.95 * z_scores.size()));
4850
}
4951

50-
5152
TEST_F(TestSuite, testSin) {
5253
std::vector<double> args = {
5354
-0.5620816275750421, -0.082699735953560394, -0.73692442452247864, -0.93085577907030514, 0.038832744045494971, 0.86938579245347758,

0 commit comments

Comments
 (0)