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

Implement sqlite3Strlen30() using strlen() from the C library.

FossilOrigin-Name: 8001aa52bd12f900092387fe3571463e89efd977
This commit is contained in:
drh
2015-06-30 03:18:33 +00:00
parent 597d2b6412
commit 1116bf1359
3 changed files with 8 additions and 10 deletions

View File

@@ -105,10 +105,8 @@ int sqlite3IsNaN(double x){
** than 1GiB) the value returned might be less than the true string length.
*/
int sqlite3Strlen30(const char *z){
const char *z2 = z;
if( z==0 ) return 0;
while( *z2 ){ z2++; }
return 0x3fffffff & (int)(z2 - z);
return 0x3fffffff & (int)strlen(z);
}
/*