Skip to content

Commit 63289c5

Browse files
authored
Fix return warning (#160)
1 parent fa7fc82 commit 63289c5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/signal_processing/SPUC/complex.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ template <class T> class complex
3737
re = 0;
3838
im = 0;
3939
}
40-
void* operator new (size_t) {
41-
T* re = new T;
42-
T* im = new T;
40+
void* operator new(size_t size) {
41+
return ::operator new(size);
4342
}
4443
complex(T r, T i) :re(r), im(i) {}
4544
complex(T r) : re(r), im(0) {}

0 commit comments

Comments
 (0)