[all-commits] [llvm/llvm-project] a54d88: [APFloat] Fix `APFloat::getOne` (#112308)

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Mon Oct 14 22:36:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a54d88f97dfeb35e4f6c14e5563ec686e68fd244
      https://github.com/llvm/llvm-project/commit/a54d88f97dfeb35e4f6c14e5563ec686e68fd244
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M llvm/include/llvm/ADT/APFloat.h
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  [APFloat] Fix `APFloat::getOne` (#112308)

`APFloat::APFloat(const fltSemantics &Semantics, integerPart I)`
interprets 'I' as a unsigned integer.
Fix the bug found in
https://github.com/llvm/llvm-project/pull/112113#discussion_r1799744541.



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