Changeset 3598 in kBuild
- Timestamp:
- Jun 16, 2023 9:27:04 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/expand.c
r3477 r3598 1556 1556 { 1557 1557 char temp[32]; 1558 char *p = &temp[sizeof(temp) - 1]; 1558 1559 int neg = num < 0; 1559 char *p = temp + 31;1560 1561 temp[31] = '\0'; 1562 1560 if (neg) 1561 num = -num; 1562 1563 *p = '\0'; 1563 1564 do { 1564 1565 *--p = num % 10 + '0'; 1565 1566 } while ((num /= 10) != 0); 1566 1567 1567 if (neg) 1568 1568 *--p = '-'; … … 1577 1577 { 1578 1578 char temp[32]; 1579 char *p = &temp[sizeof(temp) - 1]; 1579 1580 int neg = num < 0; 1580 char *p = temp + 31;1581 1582 temp[31] = '\0'; 1583 1581 if (neg) 1582 num = -num; 1583 1584 *p = '\0'; 1584 1585 do { 1585 1586 *--p = num % 10 + '0';
Note:
See TracChangeset
for help on using the changeset viewer.