Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ti-mo/tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 14, 2025

  1. cmd/stringer: omit negative bounds check from String for unsigned int…

    …egers
    
    CL 707396 ("cmd/stringer: fix bounds checking for integer types spanning full
    range") introduced a universal lower bounds check for all integers, including
    unsigned ints. Unfortunately, performing a <0 bounds check on a uint gets
    flagged by static analysis tools like staticcheck.
    
    This commit only emits the bounds check if the type in question is either
    signed or has a non-zero minimum value, in which case the bounds check is
    necessary for unsigned types as well.
    
    Signed-off-by: Timo Beckers <timo@incline.eu>
    ti-mo committed Oct 14, 2025
    Configuration menu
    Copy the full SHA
    35329ce View commit details
    Browse the repository at this point in the history
Loading