From e0ae31fcce3bd57b24751ff3c82cba820e493c3a Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Thu, 5 Sep 2013 09:34:25 +0300 Subject: Change _gcry_burn_stack take burn depth as unsigned integer * src/misc.c (_gcry_burn_stack): Change to handle 'unsigned int' bytes. -- Unsigned integer is better here for code generation because we can now avoid possible branching caused by (bytes <= 0) check. Signed-off-by: Jussi Kivilinna --- src/g10lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/g10lib.h') diff --git a/src/g10lib.h b/src/g10lib.h index 2d84dd3a..4c34ae53 100644 --- a/src/g10lib.h +++ b/src/g10lib.h @@ -242,7 +242,7 @@ int strcasecmp (const char *a, const char *b) _GCRY_GCC_ATTR_PURE; /* Stack burning. */ -void _gcry_burn_stack (int bytes); +void _gcry_burn_stack (unsigned int bytes); /* To avoid that a compiler optimizes certain memset calls away, these -- cgit v1.2.1