From 773f5b7f42c07149c57c463d2b55de0ac74c17a1 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 25 Oct 2021 21:13:27 +0200 Subject: [PATCH] Fix copypasta in comment Signed-off-by: Gilles Peskine --- library/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/base64.c b/library/base64.c index 085c71f3c..a516c1d4a 100644 --- a/library/base64.c +++ b/library/base64.c @@ -49,7 +49,7 @@ unsigned char mbedtls_base64_mask_of_range( unsigned char low, { /* low_mask is: 0 if low <= c, 0x...ff if low > c */ unsigned low_mask = ( (unsigned) c - low ) >> 8; - /* high_mask is: 0 if c <= high, 0x...ff if high > c */ + /* high_mask is: 0 if c <= high, 0x...ff if c > high */ unsigned high_mask = ( (unsigned) high - c ) >> 8; return( ~( low_mask | high_mask ) & 0xff ); }