File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ npy_complex128 complex_float_prod(npy_complex128 a, float b) {
46
46
void complex_inc (npy_complex128 * a , npy_complex128 b ) {
47
47
#if defined(_MSC_VER )
48
48
npy_complex128 tmp = {creal (* a ) + creal (b ), cimag (* a ) + cimag (b )};
49
- (* a )[0 ] = creal (tmp );
50
- (* a )[1 ] = cimag (tmp );
49
+ (( double * ) a )[0 ] = creal (tmp );
50
+ (( double * ) a )[1 ] = cimag (tmp );
51
51
return ;
52
52
#else /* !defined(_MSC_VER) */
53
53
* a *= b ;
@@ -59,8 +59,8 @@ void complex_inc(npy_complex128 *a, npy_complex128 b) {
59
59
void complex_multiply (npy_complex128 * a , npy_complex128 b ) {
60
60
#if defined(_MSC_VER )
61
61
npy_complex128 tmp = _Cmulcc (* a , b );
62
- (* a )[0 ] = creal (tmp );
63
- (* a )[1 ] = cimag (tmp );
62
+ (( double * ) a )[0 ] = creal (tmp );
63
+ (( double * ) a )[1 ] = cimag (tmp );
64
64
return ;
65
65
#else /* !defined(_MSC_VER) */
66
66
* a *= b ;
You can’t perform that action at this time.
0 commit comments