diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-15 03:30:00 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-15 03:30:00 +0000 |
commit | 57932708c852eea264011f8019acf39f4a997252 (patch) | |
tree | 251dff2d29246bf1f2f4b2b9d54f1bd6f963b472 /lib | |
parent | 76c242127e0ee8c745592bdea2d948c8ecfa84c2 (diff) | |
download | netpbm-mirror-57932708c852eea264011f8019acf39f4a997252.tar.gz netpbm-mirror-57932708c852eea264011f8019acf39f4a997252.tar.xz netpbm-mirror-57932708c852eea264011f8019acf39f4a997252.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1052 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpam.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpam.c b/lib/libpam.c index ab75fab6..b890434e 100644 --- a/lib/libpam.c +++ b/lib/libpam.c @@ -227,12 +227,11 @@ allocPamRow(const struct pam * const pamP) { overflow will not occur in our calculations. NOTE: pnm_readpaminit() ensures this assumption is valid. -----------------------------------------------------------------------------*/ - /* The tuple row data structure starts with 'width' pointers to - the tuples, immediately followed by the 'width' tuples - themselves. Each tuple consists of 'depth' samples. + /* The tuple row data structure starts with pointers to the tuples, + immediately followed by the tuples themselves. */ - int const bytesPerTuple = allocationDepth(pamP) * sizeof(sample); + unsigned int const bytesPerTuple = allocationDepth(pamP) * sizeof(sample); tuple * tuplerow; tuplerow = malloc(pamP->width * (sizeof(tuple *) + bytesPerTuple)); |