Skip to content

Commit b5945d2

Browse files
committed
limit array size
1 parent 810f7e6 commit b5945d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/world_builder/parameters.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,9 @@ namespace WorldBuilder
790790
{
791791
WBAssertThrow(false, "Could not convert values of /Litho1.0 path into a String. ");
792792
}
793-
constexpr int n1 = 40962;
793+
constexpr int n1 = 40; //962;
794794
constexpr int n_layers = 9;
795-
float depth_data[40962 * 9];
795+
float depth_data[n1 * n_layers];
796796
char tessfile[255];
797797
snprintf(tessfile, 254, "%s/litho_depth_data.bin", litho_1_0_path.c_str());
798798
FILE *fptrb = nullptr;

0 commit comments

Comments
 (0)