Skip to content

Commit

Permalink
No memory allocation for intermediate key.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoathaydes committed Jan 19, 2024
1 parent d1fa1b7 commit 4e8508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d/src/dencoder.d
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ void printTranslations(in string[][Key] dict, ISolutionHandler shandler,
return;
}
bool foundWord = false;
auto keyValue = new ubyte[number.length];
Key n;
size_t hash = 0;
ubyte[64] keyValue;
foreach (i, c; digits)
{
auto b = cast(ubyte) (c - '0');
Expand Down

0 comments on commit 4e8508c

Please sign in to comment.