mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 10:40:58 +01:00
core: minor cleanup of integer multiplication in _sleep_duration_convert_ms_to_us()
Cast to unsigned int64. Also add parenthesis, even if not strictly necessary.
This commit is contained in:
parent
07193dabd1
commit
90818b5391
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ static gulong
|
|||
_sleep_duration_convert_ms_to_us(guint32 sleep_duration_msec)
|
||||
{
|
||||
if (sleep_duration_msec > 0) {
|
||||
guint64 x = (gint64) sleep_duration_msec * (guint64) 1000L;
|
||||
guint64 x = ((guint64) sleep_duration_msec) * 1000UL;
|
||||
|
||||
return x < G_MAXULONG ? (gulong) x : G_MAXULONG;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue