Skip to content

Commit db17d2d

Browse files
GeoDaoyukgryte
andauthored
chore: fix C lint errors
PR-URL: #8137 Closes: #8136 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent 8131dc1 commit db17d2d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/number/float32/base/significand/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ s = significandf( NaN ); // => 10000000000000000000000
6161

6262
## Examples
6363

64+
<!-- eslint-disable @cspell/spellchecker -->
65+
6466
<!-- eslint no-undef: "error" -->
6567

6668
```javascript
@@ -161,7 +163,7 @@ int32_t stdlib_base_float32_significand( const float x );
161163
#include <inttypes.h>
162164

163165
int main( void ) {
164-
float x[] = { 4.0f, 0.0f, -0.0f, 1.0f, -1.0f, 3.14f, -3.14f, 1.0e38f, -1.0e38f, 1.0f/0.0f, -1.0f/0.0f, 0.0f/0.0f };
166+
const float x[] = { 4.0f, 0.0f, -0.0f, 1.0f, -1.0f, 3.14f, -3.14f, 1.0e38f, -1.0e38f, 1.0f/0.0f, -1.0f/0.0f, 0.0f/0.0f };
165167

166168
int32_t out;
167169
int i;

lib/node_modules/@stdlib/number/float32/base/significand/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <inttypes.h>
2323

2424
int main( void ) {
25-
float x[] = { 4.0f, 0.0f, -0.0f, 1.0f, -1.0f, 3.14f, -3.14f, 1.0e38f, -1.0e38f, 1.0f/0.0f, -1.0f/0.0f, 0.0f/0.0f };
25+
const float x[] = { 4.0f, 0.0f, -0.0f, 1.0f, -1.0f, 3.14f, -3.14f, 1.0e38f, -1.0e38f, 1.0f/0.0f, -1.0f/0.0f, 0.0f/0.0f };
2626

2727
int32_t out;
2828
int i;

0 commit comments

Comments
 (0)