Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 894087 Details for
Bug 877785
dev-scheme/guile-lib-0.2.7 - make[1]: [Makefile:<snip>: graph/topological-sort.go] Error 1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch (may require guile 3.0)
primes.scm.diff (text/plain), 941 bytes, created by
Zack Weinberg
on 2024-05-24 00:08:37 UTC
(
hide
)
Description:
patch (may require guile 3.0)
Filename:
MIME Type:
Creator:
Zack Weinberg
Created:
2024-05-24 00:08:37 UTC
Size:
941 bytes
patch
obsolete
># Fix compile and test failures due to bitvector API change. ># https://bugs.gentoo.org/877785 >--- a/src/math/primes.scm 2024-05-23 19:26:16.757865343 -0400 >+++ b/src/math/primes.scm 2024-05-23 19:28:20.797358650 -0400 >@@ -114,7 +114,7 @@ > (set! prime:prime-sqr (* nexp nexp)) > (set! prime:sieve (make-bitvector nexp #f)) > (for-each (lambda (prime) >- (bitvector-set! prime:sieve prime #t)) >+ (bitvector-set-bit! prime:sieve prime)) > primes) > (set! prime:products (reverse (cons comp comps)))) > (else >@@ -132,7 +132,7 @@ > There is a slight chance, @code{(expt 2 (- prime:trials))}, that a > composite will return @code{#t}." > (set! n (abs n)) >- (cond ((< n (bitvector-length prime:sieve)) (bitvector-ref prime:sieve n)) >+ (cond ((< n (bitvector-length prime:sieve)) (bitvector-bit-set? prime:sieve n)) > ((even? n) #f) > ((primes-gcd? n prime:products) #f) > ((< n prime:prime-sqr) #t)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 877785
:
824873
|
824875
|
824877
|
824879
|
824881
|
824883
|
824885
| 894087