Skip to content

Commit 9285b4c

Browse files
Flavio Ceolinnashif
authored andcommitted
arch: nios2: Fix 10.4 violations
Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent b7d0448 commit 9285b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/nios2/core/timing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count)
6161

6262
uint32_t arch_timing_freq_get_mhz(void)
6363
{
64-
return (uint32_t)(arch_timing_freq_get() / 1000000);
64+
return (uint32_t)(arch_timing_freq_get() / 1000000U);
6565
}

0 commit comments

Comments
 (0)