From: Guido van Rossum Date: Mon, 1 Nov 1993 16:20:18 +0000 (+0000) Subject: Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT. X-Git-Tag: v1.0.1~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0667626694cf1d7232d3142aef645ecb2d8680c0;p=thirdparty%2FPython%2Fcpython.git Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT. --- diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index 71bac909a683..f01c5fe3f86b 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c @@ -158,11 +158,26 @@ char *key; int i; int len=strlen(key); for (i=0;i>13) + key[i]) & 65535); + k2 = (((k2<<3 | k2>>13) ^ key[i]) & 65535); + k3 = (((k3<<3 | k3>>13) - key[i]) & 65535); + k4 = ((key[i] - (k4<<3 | k4>>13)) & 65535); + k5 = (((k5<<3 | k5>>13) ^ ~key[i]) & 65535); +#endif } r->key[0] = (short)k1; r->key[1] = (short)(k2|1);