X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcmath%2Fmp_tfm.c;h=b3b1e73beb89bc8bf6cb22b43bcded5575019ef1;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=10b4f9e8f567065ca768048f0b8b54493feb81a9;hpb=40f8443d8d3a6577336ee66d18e04d9ac4d956bb;p=silc.git diff --git a/lib/silcmath/mp_tfm.c b/lib/silcmath/mp_tfm.c index 10b4f9e8..b3b1e73b 100644 --- a/lib/silcmath/mp_tfm.c +++ b/lib/silcmath/mp_tfm.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2005 Pekka Riikonen + Copyright (C) 2005 - 2006 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -67,8 +67,8 @@ void silc_mp_set_str(SilcMPInt *dst, const char *str, int base) SilcUInt32 silc_mp_get_ui(SilcMPInt *mp) { - SILC_NOT_IMPLEMENTED("silc_mp_get_ui"); - assert(FALSE); + fp_int *tmp = mp; + return tmp->used > 0 ? tmp->dp[0] : 0; } char *silc_mp_get_str(char *str, SilcMPInt *mp, int base)