~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_iocache2.c

  • Committer: Brian Aker
  • Date: 2008-07-13 22:21:51 UTC
  • Revision ID: brian@tangent.org-20080713222151-fv2tcpbsc829j2oc
Ulonglong to uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
  if (info->type == READ_CACHE || info->type == SEQ_READ_APPEND)
139
139
  {
140
140
    /* TODO: explain why this works if pos < info->pos_in_file */
141
 
    if ((ulonglong) offset < (ulonglong) (info->read_end - info->buffer))
 
141
    if ((uint64_t) offset < (uint64_t) (info->read_end - info->buffer))
142
142
    {
143
143
      /* The read is in the current buffer; Reuse it */
144
144
      info->read_pos = info->buffer + offset;
153
153
  else if (info->type == WRITE_CACHE)
154
154
  {
155
155
    /* If write is in current buffer, reuse it */
156
 
    if ((ulonglong) offset <
157
 
        (ulonglong) (info->write_end - info->write_buffer))
 
156
    if ((uint64_t) offset <
 
157
        (uint64_t) (info->write_end - info->write_buffer))
158
158
    {
159
159
      info->write_pos = info->write_buffer + offset;
160
160
      DBUG_VOID_RETURN;