mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Added a couple of (float) casts.
- Fixed isblank() to compile properly. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14957 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_vfscanf.c,v 1.15 2005-05-14 10:52:31 obarthel Exp $
|
||||
* $Id: stdio_vfscanf.c,v 1.16 2005-05-29 08:19:36 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -1107,14 +1107,14 @@ vfscanf(FILE *stream, const char *format, va_list arg)
|
||||
double divisor;
|
||||
|
||||
/* A negative exponent means division. */
|
||||
divisor = pow(radix,(double)exponent);
|
||||
divisor = pow((double)radix,(double)exponent);
|
||||
if(divisor != 0.0)
|
||||
sum = sum / divisor;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* A positive exponent means multiplication. */
|
||||
new_sum = sum * pow(radix,(double)exponent);
|
||||
new_sum = sum * pow((double)radix,(double)exponent);
|
||||
if(new_sum >= sum)
|
||||
sum = new_sum;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user