oops -> change mpdigit from long to ulong
diff --git a/include/mp.h b/include/mp.h
index 876c0c7..427544d 100644
--- a/include/mp.h
+++ b/include/mp.h
@@ -11,7 +11,7 @@
 
 #define _MPINT 1
 
-typedef long mpdigit;
+typedef ulong mpdigit;
 
 // the code assumes mpdigit to be at least an int
 // mpdigit must be an atomic type.  mpdigit is defined