~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/base64.cc

Merge Devananda's BENCHMARK UDF plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
    i++;
214
214
 
215
215
  end:
216
 
    b[0]= char((c >> 16) & 0xff);
217
 
    b[1]= char((c >>  8) & 0xff);
218
 
    b[2]= char((c >>  0) & 0xff);
 
216
    b[0]= (c >> 16) & 0xff;
 
217
    b[1]= (c >>  8) & 0xff;
 
218
    b[2]= (c >>  0) & 0xff;
219
219
 
220
220
    for (j=0; j<3-mark; j++)
221
221
      *d++= b[j];
228
228
    The variable 'i' is set to 'len' when padding has been read, so it
229
229
    does not actually reflect the number of bytes read from 'src'.
230
230
   */
231
 
  return (i != len) ? -1 : int(d - dst_base);
 
231
  return i != len ? -1 : d - dst_base;
232
232
}
233
233
 
234
234