/ Check-in [4a5641cc]
Login

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

Overview
Comment:Fix a typecast problem in lemon that could cause problems on 64-bit machines.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4a5641cc0aa4c49762f4fe73dab4a6612631c0d2
User & Date: drh 2012-04-18 09:59:56
Context
2012-04-18
10:13
Fix a harmless compiler warning in the mkkeywordhash.c utility program. check-in: 6015200b user: drh tags: trunk
09:59
Fix a typecast problem in lemon that could cause problems on 64-bit machines. check-in: 4a5641cc user: drh tags: trunk
2012-04-17
16:38
Improved handling of aggregate subqueries within an aggregate query. check-in: 430bb59d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  1542   1542   ** ALGORITHM:
  1543   1543   ** Merge-sort.
  1544   1544   */
  1545   1545   
  1546   1546   /*
  1547   1547   ** Return a pointer to the next structure in the linked list.
  1548   1548   */
  1549         -#define NEXT(A) (*(char**)(((unsigned long)A)+offset))
         1549  +#define NEXT(A) (*(char**)(((char*)A)+offset))
  1550   1550   
  1551   1551   /*
  1552   1552   ** Inputs:
  1553   1553   **   a:       A sorted, null-terminated linked list.  (May be null).
  1554   1554   **   b:       A sorted, null-terminated linked list.  (May be null).
  1555   1555   **   cmp:     A pointer to the comparison function.
  1556   1556   **   offset:  Offset in the structure to the "next" field.