Skip to content

Commit

Permalink
Fix armhf warning (#163)
Browse files Browse the repository at this point in the history
* Fix armhf warning due to size_t being 32 bits

Signed-off-by: Emerson Knapp <eknapp@amazon.com>

* Include stdint.h

Signed-off-by: Emerson Knapp <eknapp@amazon.com>

* Just include limits and use SIZE_MAX, finding out if it works on Windows

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
emersonknapp authored and dirk-thomas committed Jun 4, 2019
1 parent ea283cb commit e49e277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error_handling.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extern "C"

#include <rcutils/error_handling.h>

#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -92,7 +93,7 @@ __format_overwriting_error_state_message(
{
assert(NULL != buffer);
assert(0 != buffer_size);
assert(INT64_MAX > buffer_size);
assert(SIZE_MAX > buffer_size);
assert(NULL != new_error_state);

int64_t bytes_left = buffer_size;
Expand Down

0 comments on commit e49e277

Please sign in to comment.