From: Peter Johnson Date: Mon, 22 Apr 2002 01:58:09 +0000 (-0000) Subject: Splint cleanups. X-Git-Tag: v0.2.0~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb71f908bc135c355d5c9d042bba5253f0afd87e;p=yasm Splint cleanups. svn path=/trunk/yasm/; revision=598 --- diff --git a/libyasm/floatnum.c b/libyasm/floatnum.c index 5faef0df..9f4e936b 100644 --- a/libyasm/floatnum.c +++ b/libyasm/floatnum.c @@ -155,7 +155,8 @@ POT_Table_Init_Entry(/*@out@*/ POT_Entry *e, POT_Entry_Source *s, int dec_exp) /*@-compdef@*/ static void POT_Table_Init(void) -/*@globals undef POT_TableN, undef POT_TableP @*/ +/*@globals undef POT_TableN, undef POT_TableP, POT_TableP_Source, + POT_TableN_Source @*/ { int dec_exp = 1; int i; @@ -523,8 +524,10 @@ floatnum_get_int(const floatnum *flt, unsigned long *ret_val) { unsigned char t[4]; - if (floatnum_get_sized(flt, t, 4)) + if (floatnum_get_sized(flt, t, 4)) { + *ret_val = 0xDEADBEEFUL; /* Obviously incorrect return value */ return 1; + } LOAD_LONG(*ret_val, &t[0]); return 0; diff --git a/src/floatnum.c b/src/floatnum.c index 5faef0df..9f4e936b 100644 --- a/src/floatnum.c +++ b/src/floatnum.c @@ -155,7 +155,8 @@ POT_Table_Init_Entry(/*@out@*/ POT_Entry *e, POT_Entry_Source *s, int dec_exp) /*@-compdef@*/ static void POT_Table_Init(void) -/*@globals undef POT_TableN, undef POT_TableP @*/ +/*@globals undef POT_TableN, undef POT_TableP, POT_TableP_Source, + POT_TableN_Source @*/ { int dec_exp = 1; int i; @@ -523,8 +524,10 @@ floatnum_get_int(const floatnum *flt, unsigned long *ret_val) { unsigned char t[4]; - if (floatnum_get_sized(flt, t, 4)) + if (floatnum_get_sized(flt, t, 4)) { + *ret_val = 0xDEADBEEFUL; /* Obviously incorrect return value */ return 1; + } LOAD_LONG(*ret_val, &t[0]); return 0;