diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-10 03:02:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-10 03:02:54 +0000 |
commit | 3e0fdc1a0b339edc06eb8be203be1aec14a3f20d (patch) | |
tree | ec7625641a272c3d7be75aea6a83c29a94995be9 /src/fmt.c | |
parent | c4610f8bb637545977ebcf577e92364b86581cc4 (diff) | |
download | coreutils-3e0fdc1a0b339edc06eb8be203be1aec14a3f20d.tar.gz coreutils-3e0fdc1a0b339edc06eb8be203be1aec14a3f20d.tar.bz2 coreutils-3e0fdc1a0b339edc06eb8be203be1aec14a3f20d.zip |
(MAXCOST): Use `(unsigned long)1' rather than `(COST)1'
so the left operand of the << isn't signed.
From Kjetil Torgrim Homme.
Diffstat (limited to 'src/fmt.c')
-rw-r--r-- | src/fmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ typedef long COST; -#define MAXCOST (~(((COST) 1) << (8 * sizeof (COST) -1))) +#define MAXCOST (~(((unsigned long) 1) << (8 * sizeof (COST) -1))) #define SQR(n) ((n) * (n)) #define EQUIV(n) SQR ((COST) (n)) |