poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[COMMITTED] pickles: asn1-ber: use the ?! operator in is_indefinite


From: Jose E. Marchesi
Subject: [COMMITTED] pickles: asn1-ber: use the ?! operator in is_indefinite
Date: Sun, 26 Dec 2021 21:26:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

2021-12-26  Jose E. Marchesi  <jemarch@gnu.org>

        * pickles/asn1-ber.pk (BER_Data_Value): Use the ?! operator in the
        is_indefinite method.
---
 ChangeLog           | 5 +++++
 pickles/asn1-ber.pk | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b6b323da..db9fadf3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2021-12-26  Jose E. Marchesi  <jemarch@gnu.org>
 
+       * pickles/asn1-ber.pk (BER_Data_Value): Use the ?! operator in the
+       is_indefinite method.
+
+2021-12-26  Jose E. Marchesi  <jemarch@gnu.org>
+
        * libpoke/pvm.h (pvm_make_signed_integral): New prototype.
        (pvm_make_unsigned_integral): Likewise.
        * libpoke/pvm-val.c (pvm_make_signed_integral): New function.
diff --git a/pickles/asn1-ber.pk b/pickles/asn1-ber.pk
index 4dae2050..9e3df5bd 100644
--- a/pickles/asn1-ber.pk
+++ b/pickles/asn1-ber.pk
@@ -217,8 +217,7 @@ type BER_Data_Value =
 
       method is_indefinite = int:
       {
-        try return indefinite || 1;
-        catch if E_elem { return 0; }
+        return indefinite ?! E_elem;
       }
 
       method get = offset<uint<64>,B>:
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]