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

Test cases for hex literals.

FossilOrigin-Name: 19054339c47448bcdfd1f7be35daa3826c409077
This commit is contained in:
drh
2014-07-23 01:56:32 +00:00
parent 28e048c618
commit fce4da1b73
4 changed files with 159 additions and 11 deletions

View File

@@ -335,7 +335,7 @@ int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
z+=incr;
}
#ifndef SQLITE_OMIT_HEX_INTEGER
else if( *z==0
else if( *z=='0'
&& &z[incr*2]<zEnd
&& (z[incr]=='x' || z[incr]=='X')
&& sqlite3Isxdigit(z[incr*2])