Permalink
Browse files

intToBigInt

  • Loading branch information...
1 parent 1aa9591 commit f329c4db139616010607fe20ced02508e0cf5126 Edwin Brady committed Nov 15, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 evm/stdfuns.c
View
@@ -365,6 +365,11 @@ mpz_t* strToBigInt(char* str)
return answer;
}
+mpz_t* intToBigInt(int x)
+{
+ return NEWBIGINTI(x);
+}
+
char* bigIntToStr(mpz_t x)
{
char* str = mpz_get_str(NULL,10,x);

0 comments on commit f329c4d

Please sign in to comment.