/ Check-in [b59d9033]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:A change to lemon related to ticket #313. (CVS 972)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b59d9033d5556015543ac5ca23110ccbeb4391f0
User & Date: drh 2003-05-13 00:34:21
Context
2003-05-13
01:52
Fix another twos-complement negation error. Ticket #313. (CVS 973) check-in: f267a8a4 user: drh tags: trunk
00:34
A change to lemon related to ticket #313. (CVS 972) check-in: b59d9033 user: drh tags: trunk
00:24
Remove unnecessary "#include <sqliteInt.h>" from the shell code. (CVS 971) check-in: 6e5c497a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  2902   2902       while( *cp ) stddt[j++] = *cp++;
  2903   2903       while( j>0 && isspace(stddt[j-1]) ) j--;
  2904   2904       stddt[j] = 0;
  2905   2905       hash = 0;
  2906   2906       for(j=0; stddt[j]; j++){
  2907   2907         hash = hash*53 + stddt[j];
  2908   2908       }
  2909         -    if( hash<0 ) hash = -hash;
  2910         -    hash = hash%arraysize;
         2909  +    hash = (hash & 0x7fffffff)%arraysize;
  2911   2910       while( types[hash] ){
  2912   2911         if( strcmp(types[hash],stddt)==0 ){
  2913   2912           sp->dtnum = hash + 1;
  2914   2913           break;
  2915   2914         }
  2916   2915         hash++;
  2917   2916         if( hash>=arraysize ) hash = 0;