~ensoft-opensource/+junk/cpython

« back to all changes in this revision

Viewing changes to Modules/sha512module.c

  • Committer: Martin Morrison
  • Date: 2013-05-08 04:00:22 UTC
  • Revision ID: mm@ensoft.co.uk-20130508040022-p36d9m60dlfc7vg2
Latest sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
        memcpy(((SHA_BYTE *) sha_info->data) + sha_info->local, buffer, i);
301
301
        count -= i;
302
302
        buffer += i;
303
 
        sha_info->local += i;
 
303
        sha_info->local += (int)i;
304
304
        if (sha_info->local == SHA_BLOCKSIZE) {
305
305
            sha512_transform(sha_info);
306
306
        }
315
315
        sha512_transform(sha_info);
316
316
    }
317
317
    memcpy(sha_info->data, buffer, count);
318
 
    sha_info->local = count;
 
318
    sha_info->local = (int)count;
319
319
}
320
320
 
321
321
/* finish computing the SHA digest */