mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +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
|
/// 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)
|
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;
|
((T*)data[i-BASE].col)[data[i-BASE].size] = acont;
|
||||||
data[i-BASE].size++;
|
data[i-BASE].size++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user