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

Prevent the implementation of the toreal() SQL function from being 'optimized' by MSVC.

FossilOrigin-Name: 047bd1c24553b00ccf12d7745bb4c46820b91f5e
This commit is contained in:
mistachkin
2013-08-29 01:17:24 +00:00
parent 5db4f78ef5
commit 09dee52885
3 changed files with 13 additions and 7 deletions

View File

@@ -1015,6 +1015,9 @@ static void tointegerFunc(
** toreal(X): If X can be losslessly converted into a real number, then
** do so and return that real number. Otherwise return NULL.
*/
#if defined(_MSC_VER)
#pragma optimize("", off)
#endif
static void torealFunc(
sqlite3_context *context,
int argc,
@@ -1056,6 +1059,9 @@ static void torealFunc(
}
}
}
#if defined(_MSC_VER)
#pragma optimize("", on)
#endif
/*
** The unicode() function. Return the integer unicode code-point value