Commit 885a5fd
Release Manager
sagemathgh-40855: Fix singular Z2m ring creation and polynomial comparison
See the new test, previously it fails.
The `n_Z2m` ring creation is caused by sagemath#39075.
Singular source code contains
```
// is exponent <=2^(8*sizeof(unsigned long))
mp_bitcnt_t l=mpz_scan1 (modBase,0);
if ((l>0) && (l<=8*sizeof(unsigned long)))
{
```
so the limit is taken from there.
The polynomial comparison fix is workaround for
Singular/Singular#1293. sagemath#39018 touches this
part of the code, although I think it doesn't introduce the bug.
Fix sagemath#40838
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
URL: sagemath#40855
Reported by: user202729
Reviewer(s): Travis Scrimshaw
3 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
293 | 300 | | |
294 | 301 | | |
295 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
| |||
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
265 | 279 | | |
266 | 280 | | |
267 | 281 | | |
| |||
516 | 530 | | |
517 | 531 | | |
518 | 532 | | |
519 | | - | |
| 533 | + | |
520 | 534 | | |
521 | 535 | | |
522 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
1546 | 1545 | | |
1547 | 1546 | | |
1548 | 1547 | | |
| |||
1552 | 1551 | | |
1553 | 1552 | | |
1554 | 1553 | | |
1555 | | - | |
1556 | | - | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1557 | 1562 | | |
1558 | 1563 | | |
1559 | 1564 | | |
| |||
0 commit comments