Skip to content

Commit 66a2aca

Browse files
committed
fix a bug caused by memory access
1 parent e31807d commit 66a2aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_orbital/test/ORB_unittest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void test_orb::set_orbs()
8787
int* nproj = new int[ORB.get_ntype()];
8888
for (int i = 0;i < ORB.get_ntype();++i)
8989
nproj[i] = 0;
90-
const Numerical_Nonlocal beta_[1];
90+
const Numerical_Nonlocal beta_[ORB.get_ntype()];
9191

9292
ooo.set_orb_tables(
9393
ofs_running,

0 commit comments

Comments
 (0)