diff options
author | Evan Lojewski <github@meklort.com> | 2021-02-06 16:29:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 16:29:58 -0700 |
commit | a1b8330b2506ffa6a30bfc4153149b9184ea76cf (patch) | |
tree | f503723aebe715a0acd1eba2d6ba066f3fe53754 /utils/bcmregtool/main.cpp | |
parent | af7847795c9096067c976901a6149350534ae42c (diff) | |
download | bcm5719-ortega-a1b8330b2506ffa6a30bfc4153149b9184ea76cf.tar.gz bcm5719-ortega-a1b8330b2506ffa6a30bfc4153149b9184ea76cf.zip |
build: Fix a number of compiler issues when building utils with gcc. (#208)
Diffstat (limited to 'utils/bcmregtool/main.cpp')
-rw-r--r-- | utils/bcmregtool/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp index 0896b00..5eb2c4c 100644 --- a/utils/bcmregtool/main.cpp +++ b/utils/bcmregtool/main.cpp @@ -233,11 +233,11 @@ void print_context(void) printf(" pc: 0x%08X (%s+%d) opcode: 0x%08X \n", pc, symbol.c_str(), sym_offset, opcode); int numCols = 4; int offset = 32 / numCols; - for (int i = 0; i < ARRAY_ELEMENTS(r) / 4; i++) + for (size_t i = 0; i < ARRAY_ELEMENTS(r) / 4; i++) { for (int j = 0; j < numCols; j++) { - printf("$%d(%5s): 0x%08X ", i + j * offset, regnames[i + j * offset], r[i + j * offset]); + printf("$%zd(%5s): 0x%08X ", i + j * offset, regnames[i + j * offset], r[i + j * offset]); } printf("\n"); } |