[igt-dev] [PATCH i-g-t] lib: fix typo in clamp16()

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Jun 5 16:03:32 UTC 2023


On 2023-06-05 at 21:17:10 +0530, Swati Sharma wrote:
> Fix typo in return type of clamp16().
> 
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
> ---
>  lib/igt_fb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 11a5d6c0..9be312a2 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -3069,7 +3069,7 @@ static uint8_t clamp8(float val)
>  	return clamp((int)(val + 0.5f), 0, 255);
>  }
>  
> -static uint8_t clamp16(float val)
> +static uint16_t clamp16(float val)

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

>  {
>  	return clamp((int)(val + 0.5f), 0, 65535);
>  }
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list