From 8ebc2b06da349192790262ab9291adbd5aa0e88c Mon Sep 17 00:00:00 2001 From: Berry Schoenmakers Date: Sun, 5 Jan 2025 19:36:54 +0100 Subject: [PATCH] Minor fix. --- README.md | 2 +- docs/conf.py | 2 +- mpyc/gfpx.py | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d5f76b..6827f7d 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,4 @@ By running `python -m mpyc` instead you even get this REPL with the MPyC runtime The file `gen.bat` shows how to generate fresh key material for SSL. To generate SSL key material of your own, first run `pip install cryptography`. -Copyright © 2018-2024 Berry Schoenmakers \ No newline at end of file +Copyright © 2018-2025 Berry Schoenmakers \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 6b0fb44..75cf950 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,7 @@ # -- Project information ----------------------------------------------------- project = 'MPyC' -copyright = '2018 - 2024, Berry Schoenmakers' +copyright = '2018 - 2025, Berry Schoenmakers' author = 'Berry Schoenmakers' # The short X.Y version diff --git a/mpyc/gfpx.py b/mpyc/gfpx.py index a3d1654..73af52a 100644 --- a/mpyc/gfpx.py +++ b/mpyc/gfpx.py @@ -304,6 +304,9 @@ def _mul(cls, a, b): @classmethod def _lshift(cls, a, n): + if not a: + return [] + return [0] * n + a @classmethod