~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to mysys/typelib.cc

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    }
102
102
  }
103
103
  if (find == 0 && (full_name & 4) && x[0] == '#' && strchr(x, '\0')[-1] == '#' &&
104
 
      (findpos=atoi(x+1)-1) >= 0 && (uint) findpos < typelib->count)
 
104
      (findpos=atoi(x+1)-1) >= 0 && (uint32_t) findpos < typelib->count)
105
105
    find=1;
106
106
  else if (find == 0 || ! x[0])
107
107
  {
136
136
 
137
137
const char *get_type(TYPELIB *typelib, uint32_t nr)
138
138
{
139
 
  if (nr < (uint) typelib->count && typelib->type_names)
 
139
  if (nr < (uint32_t) typelib->count && typelib->type_names)
140
140
    return(typelib->type_names[nr]);
141
141
  return "?";
142
142
}