Skip to content

Commit 5be9674

Browse files
committed
style: update include order
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e1296c1 commit 5be9674

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/node_modules/@stdlib/random/base/shared/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
* limitations under the License.
1717
*/
1818

19+
#include "stdlib/random/base/shared.h"
1920
#include <stdlib.h>
2021
#include <stdio.h>
2122
#include <stdint.h>
2223
#include <math.h>
2324
#include <time.h>
2425
#include <sys/time.h>
25-
#include "stdlib/random/base/shared.h"
2626

2727
#define NAME "random/base/shared"
2828
#define ITERATIONS 1000000

lib/node_modules/@stdlib/random/base/shared/src/main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
* limitations under the License.
1717
*/
1818

19-
// Note: keep project includes in alphabetical order...
19+
#include "stdlib/random/base/shared.h"
2020
#include <stdlib.h>
2121
#include <stdint.h>
2222
#include <string.h>
23-
#include <math.h>
24-
#include "stdlib/random/base/shared.h"
2523

2624
/**
2725
* Frees a PRNG's allocated memory.
@@ -66,7 +64,7 @@ uint64_t stdlib_base_prng_next( struct BasePRNGObject *obj ) {
6664
*/
6765
double stdlib_base_prng_normalized( struct BasePRNGObject *obj ) {
6866
if ( obj == NULL ) {
69-
return NAN;
67+
return 0.0 / 0.0; // NaN
7068
}
7169
double v;
7270
obj->prng->normalized( obj, &v );

0 commit comments

Comments
 (0)