Skip to content

Commit

Permalink
* [BigNumber] Fix a Lucas Calculation Problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiao committed Sep 28, 2018
1 parent 5236054 commit 0a6b458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Examples/ECC/UnitEcc.dfm
Expand Up @@ -1238,6 +1238,8 @@ object FormEcc: TFormEcc
Width = 49
Height = 17
Caption = 'Mod'
Checked = True
State = cbChecked
TabOrder = 7
end
object btnBNLucasMod: TButton
Expand Down
2 changes: 1 addition & 1 deletion Source/Common/CnBigNumber.pas
Expand Up @@ -4287,7 +4287,7 @@ function BigNumberLucasSequenceMod(X, Y, K, N: TCnBigNumber; Q, V: TCnBigNumber)

C2.SetWord(2);
V0.SetWord(2);
BigNumberCopy(V0, X);
BigNumberCopy(V1, X);
Q0.SetOne;
Q1.SetOne;

Expand Down

0 comments on commit 0a6b458

Please sign in to comment.