diff --git a/pptok.pl b/pptok.pl index 537705c0..a0425b7c 100755 --- a/pptok.pl +++ b/pptok.pl @@ -189,9 +189,10 @@ if ($what eq 'c') { print OUT "\n"; print OUT " while ((c = *p++) != 0) {\n"; + print OUT " uint32_t kn1, kn2;\n"; print OUT " c |= 0x20; /* convert to lower case */\n"; - printf OUT " uint32_t kn1 = rot(k1,%2d) - rot(k2,%2d) + c;\n", ${$sv}[0], ${$sv}[1]; - printf OUT " uint32_t kn2 = rot(k2,%2d) - rot(k1,%2d) + c;\n", ${$sv}[2], ${$sv}[3]; + printf OUT " kn1 = rot(k1,%2d) - rot(k2,%2d) + c;\n", ${$sv}[0], ${$sv}[1]; + printf OUT " kn2 = rot(k2,%2d) - rot(k1,%2d) + c;\n", ${$sv}[2], ${$sv}[3]; print OUT " k1 = kn1; k2 = kn2;\n"; print OUT " }\n"; print OUT "\n";