[all-commits] [llvm/llvm-project] 7b33c5: [libc] Remove unnecessary check in printf floats (...

Michael Jones via All-commits all-commits at lists.llvm.org
Tue Jun 18 11:17:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b33c5c79c20745aed953ea5539f32de1a622752
      https://github.com/llvm/llvm-project/commit/7b33c5c79c20745aed953ea5539f32de1a622752
  Author: Michael Jones <michaelrj at google.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M libc/src/stdio/printf_core/float_dec_converter.h

  Log Message:
  -----------
  [libc] Remove unnecessary check in printf floats (#95841)

Fixes https://github.com/llvm/llvm-project/issues/95638

The check was `if(unsigned_num >= 0)` which will always be true. The
intent was to check for zero, but the `for` loop inside the `if` was
already doing that.



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