mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Add range check in table
This commit is contained in:
parent
db500f3cae
commit
ff505f1e41
@ -169,6 +169,7 @@ public:
|
||||
/// Inserts element acont into row i. BASE-based. Does not test if already used, assumes to have enough memory
|
||||
inline void AddSave (int i, const T & acont)
|
||||
{
|
||||
NETGEN_CHECK_RANGE(i, BASE, data.Size()+BASE);
|
||||
((T*)data[i-BASE].col)[data[i-BASE].size] = acont;
|
||||
data[i-BASE].size++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user