mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 13:15:07 -05:00
fix undefined shift operations on signed integers
This commit is contained in:
@@ -233,7 +233,7 @@ RCL_AddRefclock(RefclockParameters *params)
|
||||
if (index >= 10)
|
||||
ref[2] = (index / 10) % 10 + '0';
|
||||
|
||||
inst->ref_id = ref[0] << 24 | ref[1] << 16 | ref[2] << 8 | ref[3];
|
||||
inst->ref_id = (uint32_t)ref[0] << 24 | ref[1] << 16 | ref[2] << 8 | ref[3];
|
||||
}
|
||||
|
||||
if (inst->driver->poll) {
|
||||
|
||||
Reference in New Issue
Block a user