~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/base64.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:
109
109
static inline uint
110
110
pos(unsigned char c)
111
111
{
112
 
  return (uint) (strchr(base64_table, c) - base64_table);
 
112
  return (uint32_t) (strchr(base64_table, c) - base64_table);
113
113
}
114
114
 
115
115
 
289
289
      printf("       --------- src ---------   --------- dst ---------\n");
290
290
      for (k= 0; k<src_len; k+=8)
291
291
      {
292
 
        printf("%.4x   ", (uint) k);
 
292
        printf("%.4x   ", (uint32_t) k);
293
293
        for (l=0; l<8 && k+l<src_len; l++)
294
294
        {
295
295
          unsigned char c= src[k+l];
306
306
        printf("\n");
307
307
      }
308
308
      printf("src length: %.8x, dst length: %.8x\n",
309
 
             (uint) src_len, (uint) dst_len);
 
309
             (uint32_t) src_len, (uint32_t) dst_len);
310
310
      require(0);
311
311
    }
312
312
  }