1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Interchange to branches within an "if" statement in sqlite3_value_pointer()

in order to work around a bug in gcc.

FossilOrigin-Name: 8a606e4abab4efa03f2e5ffc33d7c5faa3c663f339da87b4ce9f3feed5dc7194
This commit is contained in:
drh
2017-07-17 17:46:29 +00:00
parent 72495b44e0
commit 06d4940a48
3 changed files with 8 additions and 8 deletions

View File

@@ -202,8 +202,8 @@ unsigned int sqlite3_value_subtype(sqlite3_value *pVal){
void *sqlite3_value_pointer(sqlite3_value *pVal, const char *zPType){
Mem *p = (Mem*)pVal;
if( p->flags==(MEM_Null|MEM_Subtype|MEM_Term|MEM_Static)
&& p->eSubtype=='p'
&& zPType!=0
&& p->eSubtype=='p'
&& strcmp(p->z, zPType)==0
){
return p->u.pPtr;