The long suffix should always be written in uppercase, i.e. 'L', as the lowercase 'l' can easily be confused with the digit one '1'.

Noncompliant Code Example

long n = 10l;  // Noncompliant; easily confused with one zero one

Compliant Solution

long n = 10L; 

See Also

Deprecated

This rule is deprecated, use {rule:squid:S818} instead.