fix ambiguity

master
Marc Wäckerlin 9 years ago
parent 7c79dcb564
commit b60e52fa4f
  1. 2
      src/cryptaux.hxx

@ -179,7 +179,7 @@ namespace crypto {
/// convert integer to binary of given size
inline std::string toBinary(unsigned long data, int bytes=2) {
std::string res(0, bytes);
std::string res('\0', bytes);
for (int i(0); i<bytes; ++i) {
res[i] = std::string::value_type(data&0xff);
data>>=8;

Loading…
Cancel
Save