Skip to content

Commit aab7233

Browse files
committed
Auto-generated commit
1 parent f9c3a18 commit aab7233

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
<details>
1414

15+
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
16+
- [`6a0d6b8`](https://github.com/stdlib-js/stdlib/commit/6a0d6b861f8e2079a501ca4e46a9175440eedb46) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
1517
- [`f13ddb2`](https://github.com/stdlib-js/stdlib/commit/f13ddb2eb01e5520b6fa98634bbf9de76793036f) - **style:** use spaces for alignment in C comments _(by Philipp Burckhardt)_
1618
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_
1719
- [`90133e3`](https://github.com/stdlib-js/stdlib/commit/90133e3fcc5deb6ea888468f2b610d1786dbba00) - **bench:** update sample value [(#2763)](https://github.com/stdlib-js/stdlib/pull/2763) _(by Gunj Joshi)_

examples/c/example.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <stdbool.h>
2323

2424
int main( void ) {
25-
double x;
26-
bool v;
27-
int i;
28-
29-
for ( i = 0; i < 100; i++ ) {
30-
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 ) - 50.0;
31-
v = stdlib_base_is_integer( x );
32-
printf( "x = %lf, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33-
}
25+
double x;
26+
bool v;
27+
int i;
28+
29+
for ( i = 0; i < 100; i++ ) {
30+
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 ) - 50.0;
31+
v = stdlib_base_is_integer( x );
32+
printf( "x = %lf, is_integer(x) = %s\n", x, ( v ) ? "true" : "false" );
33+
}
3434
}

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
* // returns true
3333
*/
3434
bool stdlib_base_is_integer( const double x ) {
35-
return ( x == stdlib_base_floor( x ) );
35+
return ( x == stdlib_base_floor( x ) );
3636
}

0 commit comments

Comments
 (0)