Small fixes for more robustness (more for testing).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1643 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7d5cacecab
commit
777cbdb6bc
3 changed files with 44 additions and 12 deletions
|
@ -102,6 +102,8 @@ retry:
|
|||
while(_int)
|
||||
{
|
||||
tempbuffer[i] = _int%16 + '0';
|
||||
if (tempbuffer[i] > '9')
|
||||
tempbuffer[i] = tempbuffer[i] - ':' + 'a';
|
||||
_int/=16;
|
||||
i--;
|
||||
}
|
||||
|
@ -466,6 +468,7 @@ float atof(char *str)
|
|||
}
|
||||
if (*str == '.')
|
||||
{ //each time we find a new digit, decrease the value of the following digits.
|
||||
str++;
|
||||
while(1)
|
||||
{
|
||||
if (*str >= '0' && *str <= '9')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue