Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[libc] implicit conversion error on rv32 #138425

Closed
@mikhailramalho

Description

@mikhailramalho

Some tests are failing to build on rv32 due to:

/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/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);
      |                                     ~~ ^~~
/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/generic/FMod.h:221:19: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::internal::FPRepImpl<__llvm_libc_21_0_0_git::fputil::FPType::IEEE754_Binary128, __llvm_libc_21_0_0_git::fputil::FPBits<long double>>::make_value' requested here
  221 |       return FPB::make_value(d, e_y - 1);
      |                   ^
/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/generic/FMod.h:286:18: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::generic::FMod<long double>::eval_internal' requested here
  286 |     FPB result = eval_internal(sx, sy);
      |                  ^
/home/mgadelha/tools/llvm-project/libc/src/math/generic/fmodl.cpp:17:46: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::generic::FMod<long double>::eval' requested here
   17 |   return fputil::generic::FMod<long double>::eval(x, y);
      |                                              ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions