Skip to content

Commit

Permalink
Change rcutils_fault_injection_set_count to use int64_t (#283)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner authored and ahcorde committed Oct 6, 2020
1 parent e278ea8 commit b8fd313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/rcutils/testing/fault_injection.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ rcutils_fault_injection_is_test_complete(void);
*/
RCUTILS_PUBLIC
void
rcutils_fault_injection_set_count(int count);
rcutils_fault_injection_set_count(int_least64_t count);

/**
* \brief Atomically get the fault injection counter value
Expand Down
2 changes: 1 addition & 1 deletion src/testing/fault_injection.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

static atomic_int_least64_t g_rcutils_fault_injection_count = ATOMIC_VAR_INIT(-1);

void rcutils_fault_injection_set_count(int count)
void rcutils_fault_injection_set_count(int_least64_t count)
{
rcutils_atomic_store(&g_rcutils_fault_injection_count, count);
}
Expand Down

0 comments on commit b8fd313

Please sign in to comment.