[all-commits] [llvm/llvm-project] 2dd296: [libc] Fix implicit conversion error on rv32 (#138...

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Tue May 6 07:31:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dd296aa47fff7f4e4c3cf75a5a1152817367371
      https://github.com/llvm/llvm-project/commit/2dd296aa47fff7f4e4c3cf75a5a1152817367371
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M libc/src/__support/FPUtil/FPBits.h

  Log Message:
  -----------
  [libc] Fix implicit conversion error on rv32 (#138622)

This patch fixes the following error on rv32 (and possibly other 32-bit
archs):

FPBits.h:760:40: error: implicit conversion loses integer precision:
'int' to 'size_t' (aka 'unsigned int')
[-Werror,-Wimplicit-int-conversion]
  760 |       result.set_significand(number >> -ep);

Fixes #138425.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list