tiancaiamao / shen-go

A Go implementation of the Shen programming language
Other
55 stars 4 forks source link

*: fix issue 12, issue 18 and PrimEqual for scmNative #23

Closed tiancaiamao closed 3 years ago

tiancaiamao commented 3 years ago

Fix https://github.com/tiancaiamao/shen-go/issues/18 and https://github.com/tiancaiamao/shen-go/issues/12

They are caused by fixnum goes out of range of the underlying memory.

Fix comparison of two Native, before this change:

(load-so "init.so")
(= map reverse) // should return false, but get true!