commit | a2538d4f2d19d04522d329753f46588d1f65d37c | [log] [tgz] |
---|---|---|
author | Matthew Riley <mattdr@google.com> | Wed Oct 12 15:29:15 2016 -0700 |
committer | Matthew Riley <mattdr@google.com> | Wed Oct 12 15:29:15 2016 -0700 |
tree | 23d6c7ab84339a813e82d2c49f843741d0978c06 | |
parent | 2cbd85085037dc7bf2eda48d4cf62e2829056e2d [diff] |
Add cast to `unsigned int` in call to printf The `%x` format specifier requires an argument of type `unsigned int`. On Windows, `be32_to_cpu` is defined as `htonl`, which returns `u_long` (aka `unsigned long`). Even though `unsigned int` and `unsigned long` are the same size on Windows, clang will complain if `-Wformat` is enabled.