From 52bd319b96a363c04df845edb8e47096077e5e0a Mon Sep 17 00:00:00 2001 From: ChiaMineJP Date: Sat, 14 Aug 2021 18:09:16 +0900 Subject: [PATCH 1/2] Fixed an issue where `op_lsh` did not work as expected --- CHANGELOG.md | 7 +++++++ src/more_ops.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa258ab..e40301d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.0.5] +This version is compatible with [`ab4560900cf475ff515054bec0ca9a4491aca366`](https://github.com/Chia-Network/clvm/tree/ab4560900cf475ff515054bec0ca9a4491aca366) of [clvm@0.9.7](https://github.com/Chia-Network/clvm) + +### Fixed +- Fixed an issue where `op_lsh` did not work as expected. + ## [1.0.4] This version is compatible with [`ab4560900cf475ff515054bec0ca9a4491aca366`](https://github.com/Chia-Network/clvm/tree/ab4560900cf475ff515054bec0ca9a4491aca366) of [clvm@0.9.7](https://github.com/Chia-Network/clvm) @@ -194,6 +200,7 @@ At this version, I've managed to improve test complete time to `79s` -> `2s` by Initial (beta) release. +[1.0.5]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.4...v1.0.5 [1.0.4]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.3...v1.0.4 [1.0.3]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.2...v1.0.3 [1.0.2]: https://github.com/Chia-Mine/clvm-js/compare/v1.0.1...v1.0.2 diff --git a/src/more_ops.ts b/src/more_ops.ts index 3433893..3a365a8 100644 --- a/src/more_ops.ts +++ b/src/more_ops.ts @@ -371,7 +371,7 @@ export function op_lsh(args: SExp){ if(l1 > 4){ throw new EvalError("lsh requires int32 args (with no leading zeros)", args.rest().first()); } - else if(i1 >= BigInt(0) ? i1 : -i1 > BigInt(65535)){ + else if((i1 >= BigInt(0) ? i1 : -i1) > BigInt(65535)){ throw new EvalError("shift too large", SExp.to(i1)); } // we actually want i0 to be an *unsigned* int From 073c137d5156204fc01452e169e523b5d3f2421e Mon Sep 17 00:00:00 2001 From: ChiaMineJP Date: Sat, 14 Aug 2021 18:38:15 +0900 Subject: [PATCH 2/2] Set version to 1.0.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cd80f7..c51b3a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clvm", - "version": "1.0.4", + "version": "1.0.5", "author": "Admin ChiaMineJP ", "description": "Javascript implementation of chia lisp", "license": "MIT",