mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-21 05:41:12 +00:00
honor uppercase/lowercase in operator<<() (Jeff Walton)
This commit is contained in:
parent
01d0286194
commit
43245166ca
5
gf2n.cpp
5
gf2n.cpp
@ -482,7 +482,10 @@ std::ostream& operator<<(std::ostream& out, const PolynomialMod2 &a)
|
||||
|
||||
SecBlock<char> s(a.BitCount()/bits+1);
|
||||
unsigned i;
|
||||
const char vec[]="0123456789ABCDEF";
|
||||
|
||||
static const char upper[]="0123456789ABCDEF";
|
||||
static const char lower[]="0123456789abcdef";
|
||||
const char* vec = (out.flags() & std::ios::uppercase) ? upper : lower;
|
||||
|
||||
for (i=0; i*bits < a.BitCount(); i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user