Check bignum return value

This commit is contained in:
Justin Ethier 2019-10-28 15:49:20 -04:00
parent 9b2ceac93d
commit 5354fcb0bb

View file

@ -640,7 +640,7 @@
(string-append
"alloc_bignum(data, " cvar-name "); "
;; TODO: need error checking, this is just a first cut:
"mp_read_radix(&bignum_value(" cvar-name "), \"" num2str "\", 10);")))))
"BIGNUM_CALL(mp_read_radix(&bignum_value(" cvar-name "), \"" num2str "\", 10));")))))
((complex? exp)
(let* ((cvar-name (mangle (gensym 'c)))
(num2str (lambda (n)