Overview
| SHA1 Hash: | 6d7973524a7d3bf3158fdac58975945da7f51740 |
|---|---|
| Date: | 2013-02-26 05:42:30 |
| User: | mistachkin |
| Comment: | Remove extra use of the sqlite3_value_int64() function. |
Tags And Properties
- branch=trunk inherited from [704b122e53]
- sym-trunk inherited from [704b122e53]
Changes
Changes to src/func.c
989 int i; 989 int i; 990 zOut = z = sqlite3_malloc( argc*4 ); 990 zOut = z = sqlite3_malloc( argc*4 ); 991 if( z==0 ){ 991 if( z==0 ){ 992 sqlite3_result_error_nomem(context); 992 sqlite3_result_error_nomem(context); 993 return; 993 return; 994 } 994 } 995 for(i=0; i<argc; i++){ 995 for(i=0; i<argc; i++){ 996 sqlite3_int64 x = sqlite3_value_int64(argv[i]); | 996 sqlite3_int64 x; 997 unsigned c; 997 unsigned c; 998 x = sqlite3_value_int64(argv[i]); 998 x = sqlite3_value_int64(argv[i]); 999 if( x<0 || x>0x10ffff ) x = 0xfffd; 999 if( x<0 || x>0x10ffff ) x = 0xfffd; 1000 c = (unsigned)(x & 0x1fffff); 1000 c = (unsigned)(x & 0x1fffff); 1001 if( c<=0xFFFF ){ 1001 if( c<=0xFFFF ){ 1002 *zOut++ = (u8)(c&0x00FF); 1002 *zOut++ = (u8)(c&0x00FF); 1003 *zOut++ = (u8)((c>>8)&0x00FF); 1003 *zOut++ = (u8)((c>>8)&0x00FF);