mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-01 21:54:39 -04:00
Fix wrong condition in DataTree
This commit is contained in:
+1
-1
@@ -303,7 +303,7 @@ public:
|
||||
template<typename T, typename Dummy = int >
|
||||
void get(T& scalar_out) {
|
||||
|
||||
if (getDataSize() < 0) {
|
||||
if (getDataSize() == 0) {
|
||||
throw DataException("Cannot get() the scalar, DataElement is empty !");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user