Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix another twos-complement negation error. Ticket #313. (CVS 973) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f267a8a4ff52eb7ee3ac20a8e3a8ab5f |
User & Date: | drh 2003-05-13 01:52:32.000 |
Context
2003-05-13
| ||
08:01 | Removed 3rd (file) column from PRAGMA database_list until tests are fixed. (CVS 974) (check-in: 4183cf9767 user: jplyon tags: trunk) | |
01:52 | Fix another twos-complement negation error. Ticket #313. (CVS 973) (check-in: f267a8a4ff user: drh tags: trunk) | |
00:34 | A change to lemon related to ticket #313. (CVS 972) (check-in: b59d9033d5 user: drh tags: trunk) | |
Changes
Changes to src/func.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** | | | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ** This file contains the C functions that implement various SQL ** functions of SQLite. ** ** There is only one exported symbol in this file - the function ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** ** $Id: func.c,v 1.25 2003/05/13 01:52:32 drh Exp $ */ #include <ctype.h> #include <math.h> #include <stdlib.h> #include <assert.h> #include "sqliteInt.h" |
︙ | ︙ | |||
320 321 322 323 324 325 326 | if( iMax<iMin ) iMax = iMin; if( iMax>=sizeof(zBuf) ) iMax = sizeof(zBuf); }else{ iMax = 50; } n = iMin; if( iMax>iMin ){ | | < | 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | if( iMax<iMin ) iMax = iMin; if( iMax>=sizeof(zBuf) ) iMax = sizeof(zBuf); }else{ iMax = 50; } n = iMin; if( iMax>iMin ){ r = sqliteRandomInteger() & 0x7fffffff; n += r%(iMax + 1 - iMin); } r = 0; for(i=0; i<n; i++){ r = (r + sqliteRandomByte())% (sizeof(zSrc)-1); zBuf[i] = zSrc[r]; } |
︙ | ︙ |