Parent: 4a06a31be0453d7c8208108dccbb7cfacf768bc4
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2022-03-31 21:21:56
Tree: 28c4a5e722f7f53d381af324fa4186e57df5dce0
mesh: use explicit uint32_t when bit shifting left This addresses a situation when a boolean type is represented by an integer and performing a left shift on a boolean causes an integer overflow. This fixes the following runtime error: "left shift of 1 by 31 places cannot be represented in type 'int'"
Diffstat
| M | mesh/crypto.c | | | 5 | ++++- |
| M | mesh/net.c | | | 12 | ++++++- - - - - - |
| M | mesh/net.h | | | 8 | ++++- - - - |
3 files changed, 14 insertions(+), 11 deletions(-)