1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Change the implementation of the NaN recognition to be more cross-platform.

Ticket #3089. (CVS 5060)

FossilOrigin-Name: 07fd9a8c6ca0876f7ec447ce65173957005dc75c
This commit is contained in:
drh
2008-04-28 16:55:26 +00:00
parent f51bf48b32
commit 0de3ae95d5
7 changed files with 28 additions and 20 deletions

View File

@@ -14,13 +14,21 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.222 2008/04/16 00:49:12 drh Exp $
** $Id: util.c,v 1.223 2008/04/28 16:55:26 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
#include <ctype.h>
/*
** Return true if the floating point value is Not a Number.
*/
int sqlite3IsNaN(double x){
volatile double y = x;
return x!=y;
}
/*
** Set the most recent error code and error string for the sqlite
** handle "db". The error code is set to "err_code".