Bump malachite-q from 0.8.0 to 0.9.0 (#6653)

* Bump malachite-q from 0.8.0 to 0.9.0

Bumps [malachite-q](https://github.com/mhogrefe/malachite) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/mhogrefe/malachite/releases)
- [Commits](https://github.com/mhogrefe/malachite/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: malachite-q
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump all malachite-* crates from 0.8.0 to 0.9.0 (#6656)

* Initial plan

* Update all malachite-* crates to 0.9.0

* Fix ctypes overflow check for malachite 0.9.0 compatibility

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-01-06 12:15:35 +09:00
1 parent cf963b74c8
commit 906aebf5a1
3 files changed
+15 -14

No files matched your search

Generated
+8 -8
View File
@@ -1822,9 +1822,9 @@ dependencies = [
[[package]]
name = "malachite-base"
version = "0.8.0"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0c91cb6071ed9ac48669d3c79bd2792db596c7e542dbadd217b385bb359f42d"
checksum = "5eb2a098b227df48779e28ed4125dd3161b792a9254961377cea6f5c19e5b417"
dependencies = [
"hashbrown 0.16.1",
"itertools 0.14.0",
@@ -1834,9 +1834,9 @@ dependencies = [
[[package]]
name = "malachite-bigint"
version = "0.8.0"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ff3af5010102f29f2ef4ee6f7b1c5b3f08a6c261b5164e01c41cf43772b6f90"
checksum = "6eaf19f1b8ba023528050372eafd72ca11f80f70c9dc2af9bb22f888bf079013"
dependencies = [
"malachite-base",
"malachite-nz",
@@ -1847,9 +1847,9 @@ dependencies = [
[[package]]
name = "malachite-nz"
version = "0.8.0"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d9ecf4dd76246fd622de4811097966106aa43f9cd7cc36cb85e774fe84c8adc"
checksum = "ab7c0ddc4e2681459d70591baf30ca5abd31c25969e76d3605838bec794c8077"
dependencies = [
"itertools 0.14.0",
"libm",
@@ -1859,9 +1859,9 @@ dependencies = [
[[package]]
name = "malachite-q"
version = "0.8.0"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7bc9d9adf5b0a7999d84f761c809bec3dc46fe983e4de547725d2b7730462a0"
checksum = "e13d19f04fc672f251d477c8d58c13c6c5550553dfba6a665c9ad3604466ac9a"
dependencies = [
"itertools 0.14.0",
"malachite-base",
+3 -3
View File
@@ -181,9 +181,9 @@ libc = "0.2.179"
libffi = "5"
log = "0.4.29"
nix = { version = "0.30", features = ["fs", "user", "process", "term", "time", "signal", "ioctl", "socket", "sched", "zerocopy", "dir", "hostname", "net", "poll"] }
malachite-bigint = "0.8"
malachite-q = "0.8"
malachite-base = "0.8"
malachite-bigint = "0.9"
malachite-q = "0.9"
malachite-base = "0.9"
memchr = "2.7.4"
num-complex = "0.4.6"
num-integer = "0.1.46"
+4 -3
View File
@@ -141,11 +141,12 @@ fn set_primitive(_type_: &str, value: &PyObject, vm: &VirtualMachine) -> PyResul
// Handle int specially to check overflow
if let Some(int_obj) = value.downcast_ref_if_exact::<PyInt>(vm) {
// Check if int can fit in f64
if int_obj.as_bigint().to_f64().is_some() {
if let Some(f) = int_obj.as_bigint().to_f64()
&& f.is_finite()
{
return Ok(value.to_owned());
} else {
return Err(vm.new_overflow_error("int too large to convert to float"));
}
return Err(vm.new_overflow_error("int too large to convert to float"));
}
// __float__ protocol
if value.try_float(vm).is_ok() {