Skip to content

Commit 10b83be

Browse files
committed
feat(lint): corrected linting for c files
1 parent bb31d1c commit 10b83be

File tree

4 files changed

+121
-121
lines changed

4 files changed

+121
-121
lines changed

lib/node_modules/@stdlib/random/base/tinymt32/include/stdlib/random/base/tinymt32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef struct {
4545
/**
4646
* Returns a pointer to a dynamically allocated PRNG.
4747
*/
48-
struct BasePRNGObject * stdlib_base_random_tinymt32_allocate( const uint32_t seed ) __attribute__((unused));
48+
struct BasePRNGObject * stdlib_base_random_tinymt32_allocate( const uint32_t seed , const int64_t seed_length ) __attribute__((unused));
4949

5050
/**
5151
* Frees a PRNG's allocated memory.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ static inline uint32_t temper( const uint32_t *state, uint32_t mat1, uint32_t ma
213213
* @return status code
214214
*/
215215
static inline int8_t next( struct BasePRNGObject *obj, uint64_t *out ) {
216-
stdlib_base_random_tinymt32_state_t *state;
216+
const stdlib_base_random_tinymt32_state_t *state;
217217
uint32_t u;
218218

219-
state = (stdlib_base_random_tinymt32_state_t *)( obj->state );
219+
state = (const stdlib_base_random_tinymt32_state_t *)( obj->state );
220220
next_state( state->state, state->mat1, state->mat2, state->tmat );
221221
u = temper( state->state, state->mat1, state->mat2, state->tmat );
222222
*out = (uint64_t)u;
@@ -232,10 +232,10 @@ static inline int8_t next( struct BasePRNGObject *obj, uint64_t *out ) {
232232
*/
233233
static inline int8_t normalized( struct BasePRNGObject *obj, double *out ) {
234234
uint64_t u;
235-
stdlib_base_random_tinymt32_state_t *state;
235+
const stdlib_base_random_tinymt32_state_t *state;
236236

237237
next( obj, &u );
238-
state = (stdlib_base_random_tinymt32_state_t *)( obj->state );
238+
state = (const stdlib_base_random_tinymt32_state_t *)( obj->state );
239239
u = temper( state->state, state->mat1, state->mat2, state->tmat );
240240
*out = (double)u * FLOAT64_NORMALIZATION_CONSTANT;
241241
return 0;

0 commit comments

Comments
 (0)