Skip to content

Conversation

@jplehr
Copy link
Contributor

@jplehr jplehr commented Mar 10, 2025

This fixes a build issue on the AMDGPU libc bot after #126846 landed that introduced a warning.

This fixes a build issue on the AMDGPU libc bot after llvm#126846
landed that introduced a warning.
@jplehr jplehr requested a review from jhuber6 March 10, 2025 14:32
@llvmbot llvmbot added the libc label Mar 10, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 10, 2025

@llvm/pr-subscribers-libc

Author: Jan Patrick Lehr (jplehr)

Changes

This fixes a build issue on the AMDGPU libc bot after #126846 landed that introduced a warning.


Full diff: https://github.com/llvm/llvm-project/pull/130615.diff

1 Files Affected:

  • (modified) libc/src/__support/high_precision_decimal.h (+1-1)
diff --git a/libc/src/__support/high_precision_decimal.h b/libc/src/__support/high_precision_decimal.h
index 922dce484aa6b..d5bf179e80f83 100644
--- a/libc/src/__support/high_precision_decimal.h
+++ b/libc/src/__support/high_precision_decimal.h
@@ -401,7 +401,7 @@ class HighPrecisionDecimal {
         this->right_shift(MAX_SHIFT_AMOUNT);
         shift_amount += MAX_SHIFT_AMOUNT;
       }
-      this->right_shift(-shift_amount);
+      this->right_shift(-static_cast<uint32_t>(shift_amount));
     }
   }
 

@jplehr jplehr merged commit ef407df into llvm:main Mar 10, 2025
14 of 15 checks passed
VishMCW pushed a commit to VishMCW/llvm-project that referenced this pull request Mar 18, 2025
This fixes a build issue on the AMDGPU libc bot after
llvm#126846 landed that introduced
a warning.

---------

Co-authored-by: Joseph Huber <[email protected]>
steven-studio pushed a commit to steven-studio/llvm-project that referenced this pull request Sep 11, 2025
This fixes a build issue on the AMDGPU libc bot after
llvm#126846 landed that introduced
a warning.

---------

Co-authored-by: Joseph Huber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants