~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/decimal.c

  • Committer: Brian Aker
  • Date: 2008-07-22 18:31:32 UTC
  • Revision ID: brian@tangent.org-20080722183132-ne2ntl7g7mdf2eez
uint32 -> uin32_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
1362
1362
  {
1363
1363
    assert(sizeof(dec1) == 4);
1364
1364
    *buf=mi_sint4korr(from) ^ mask;
1365
 
    if (((uint32)*buf) > DIG_MAX)
 
1365
    if (((uint32_t)*buf) > DIG_MAX)
1366
1366
      goto err;
1367
1367
    if (buf > to->buf || *buf != 0)
1368
1368
      buf++;
1374
1374
  {
1375
1375
    assert(sizeof(dec1) == 4);
1376
1376
    *buf=mi_sint4korr(from) ^ mask;
1377
 
    if (((uint32)*buf) > DIG_MAX)
 
1377
    if (((uint32_t)*buf) > DIG_MAX)
1378
1378
      goto err;
1379
1379
    buf++;
1380
1380
  }
1391
1391
      default: assert(0);
1392
1392
    }
1393
1393
    *buf=(x ^ mask) * powers10[DIG_PER_DEC1 - frac0x];
1394
 
    if (((uint32)*buf) > DIG_MAX)
 
1394
    if (((uint32_t)*buf) > DIG_MAX)
1395
1395
      goto err;
1396
1396
    buf++;
1397
1397
  }