Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libc/src/__support/str_to_integer.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ strtointeger(const char *__restrict src, int base,
: cpp::numeric_limits<T>::max();
ResultType const abs_max =
(is_positive ? cpp::numeric_limits<T>::max() : NEGATIVE_MAX);
ResultType const abs_max_div_by_base = abs_max / base;
ResultType const abs_max_div_by_base =
static_cast<ResultType>(abs_max / base);

while (src_cur < src_len && isalnum(src[src_cur])) {
int cur_digit = b36_char_to_int(src[src_cur]);
Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/exp2m1f16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ LLVM_LIBC_FUNCTION(float16, exp2m1f16, (float16 x)) {
case FE_DOWNWARD:
return FPBits::one(Sign::NEG).get_val();
default:
return -0x1.ffcp-1;
return fputil::cast<float16>(-0x1.ffcp-1);
}
}

Expand Down
Loading