diff options
author | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2020-09-29 10:29:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-09-29 22:53:36 +0200 |
commit | 680b80e37453d4e23ad8188d60894916e1c07162 (patch) | |
tree | 9a70bc28bd661e911e2485666c78a212cca53d9e /guix | |
parent | c99845c0d81f1503db1c6ca732f659a61e4da0d4 (diff) |
openpgp: Fix argument order of 'fxbit-set?'.
* guix/openpgp.scm (fxbit-set?): Change to swap arguments compared to
'bit-set?'.
* tests/openpgp.scm (%binary-sample): New test vector.
("port-ascii-armored?, #t"): Add test.
("port-ascii-armored?, #f"): Add another test.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r-- | guix/openpgp.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/openpgp.scm b/guix/openpgp.scm index 33c851255b..153752ee73 100644 --- a/guix/openpgp.scm +++ b/guix/openpgp.scm @@ -110,7 +110,7 @@ (define-alias fx/ /) (define-alias fxdiv quotient) (define-alias fxand logand) -(define-alias fxbit-set? bit-set?) +(define-inlinable (fxbit-set? n index) (bit-set? index n)) (define-alias fxbit-field bit-field) (define-alias bitwise-bit-field bit-field) (define-alias fxarithmetic-shift-left ash) |