mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-05 14:47:52 -04:00
Fix wrong condition in DataTree
This commit is contained in:
parent
8b0d4c2449
commit
8dfc7503f2
@ -303,7 +303,7 @@ public:
|
|||||||
template<typename T, typename Dummy = int >
|
template<typename T, typename Dummy = int >
|
||||||
void get(T& scalar_out) {
|
void get(T& scalar_out) {
|
||||||
|
|
||||||
if (getDataSize() < 0) {
|
if (getDataSize() == 0) {
|
||||||
throw DataException("Cannot get() the scalar, DataElement is empty !");
|
throw DataException("Cannot get() the scalar, DataElement is empty !");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user