1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Use a dodgy substitute if the INFINITY macro is not available. See

[forum:/forumpost/8e66e19bb9|forumpost 8e66e19bb9].

FossilOrigin-Name: 4ae72c896761df5cd37c98ca3eeee7d4c6af3e4ccf74edd88ff902ef38f0765b
This commit is contained in:
drh
2023-08-15 12:27:27 +00:00
parent 00eee07911
commit b93760e1e7
3 changed files with 11 additions and 7 deletions

View File

@@ -610,7 +610,11 @@ do_atof_calc:
}
assert( r>=0.0 );
if( r>+1.7976931348623157081452742373e+308L ){
#ifdef INFINITY
*pResult = +INFINITY;
#else
*pResult = 1.0e308*10.0;
#endif
}else{
*pResult = (double)r;
}