~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_iocache2.cc

  • Committer: Brian Aker
  • Date: 2008-11-07 23:16:58 UTC
  • mfrom: (575.1.14 devel)
  • Revision ID: brian@tangent.org-20081107231658-fboahr524d1or2ya
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list args)
277
277
{
278
278
  size_t out_length= 0;
279
 
  uint32_t minimum_width; /* as yet unimplemented */
280
 
  uint32_t minimum_width_sign;
 
279
  int32_t minimum_width; /* as yet unimplemented */
 
280
  int32_t minimum_width_sign;
281
281
  uint32_t precision; /* as yet unimplemented for anything but %b */
282
282
  bool is_zero_padded;
283
283
 
383
383
    else if (*fmt == 'd' || *fmt == 'u')        /* Integer parameter */
384
384
    {
385
385
      register int iarg;
386
 
      size_t length2;
 
386
      ssize_t length2;
387
387
      char buff[17];
388
388
 
389
389
      iarg = va_arg(args, int);
396
396
      if (minimum_width > length2) 
397
397
      {
398
398
        const size_t buflen = minimum_width - length2;
399
 
        unsigned char *buffz= my_alloca(buflen);
 
399
        unsigned char *buffz= (unsigned char *)my_alloca(buflen);
400
400
        memset(buffz, is_zero_padded ? '0' : ' ', buflen);
401
401
        my_b_write(info, buffz, buflen);
402
402
        my_afree(buffz);