More test coverage improvements. (CVS 2605)

FossilOrigin-Name: e559e810a51427def6928763ae0d6f7347366d04
This commit is contained in:
drh
2005-08-20 13:47:41 +00:00
parent 85c23c61e2
commit f0bce09cdd
4 changed files with 28 additions and 12 deletions
+3 -3
View File
@@ -669,9 +669,9 @@ void sqlite3VdbeMemSanity(Mem *pMem, u8 db_enc){
/* MEM_Null excludes all other types */
assert( (pMem->flags&(MEM_Str|MEM_Int|MEM_Real|MEM_Blob))==0
|| (pMem->flags&MEM_Null)==0 );
if( (pMem->flags & (MEM_Int|MEM_Real))==(MEM_Int|MEM_Real) ){
assert( pMem->r==pMem->i );
}
/* If the MEM is both real and integer, the values are equal */
assert( (pMem->flags & (MEM_Int|MEM_Real))!=(MEM_Int|MEM_Real)
|| pMem->r==pMem->i );
}
#endif