Skip to content

Commit c6bfacf

Browse files
authored
Update main.c
Signed-off-by: Gururaj Gurram <[email protected]>
1 parent 405679f commit c6bfacf

File tree

1 file changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/croundf/src

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/math/base/special/croundf/src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/math/base/special/croundf.h"
20+
#include "stdlib/math/base/special/roundf.h"
2021
#include "stdlib/complex/float32/ctor.h"
2122
#include "stdlib/complex/float32/reim.h"
2223
#include <math.h>
@@ -48,7 +49,7 @@ stdlib_complex64_t stdlib_base_croundf( const stdlib_complex64_t z ) {
4849

4950
stdlib_complex64_reim( z, &re, &im );
5051

51-
re = roundf( re ); // TODO: replace with stdlib function once available
52-
im = roundf( im ); // TODO: replace with stdlib function once available
52+
re = stdlib_base_roundf( re ); // TODO: replace with stdlib function once available
53+
im = stdlib_base_roundf( im ); // TODO: replace with stdlib function once available
5354
return stdlib_complex64( re, im );
5455
}

0 commit comments

Comments
 (0)