diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-29 01:18:33 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-29 01:18:33 +0000 |
commit | 9c5c4769a9c7a16aecc6cc7dd297bfe243dd022f (patch) | |
tree | 7a78ed3becd2c14f449d1cc66a58edd414256d94 /ec2n.cpp | |
parent | 259ee22eba4e4e6471caa088479a93fbee894e11 (diff) | |
download | cryptopp-git-9c5c4769a9c7a16aecc6cc7dd297bfe243dd022f.tar.gz |
fix potential threading problem with initialization of static objects
Diffstat (limited to 'ec2n.cpp')
-rw-r--r-- | ec2n.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -171,8 +171,7 @@ bool EC2N::Equal(const Point &P, const Point &Q) const const EC2N::Point& EC2N::Identity() const { - static const Point zero; - return zero; + return Singleton<Point>().Ref(); } const EC2N::Point& EC2N::Inverse(const Point &P) const |