EOSDevHelper icon indicating copy to clipboard operation
EOSDevHelper copied to clipboard

编译不过表达式必须含有常量值

Open Tinide opened this issue 5 years ago • 0 comments

bool b58tobin(void *bin, size_t *binszp, const char *b58, size_t b58sz) { size_t binsz = *binszp; const unsigned char b58u = (void)b58; unsigned char *binu = bin; size_t outisz = (binsz + 3) / 4; uint32_t outi[outisz]; uint64_t t; uint32_t c; size_t i, j; uint8_t bytesleft = binsz % 4; uint32_t zeromask = bytesleft ? (0xffffffff << (bytesleft * 8)) : 0; unsigned zerocount = 0;

outi声明要用new 或者malloc吧

Tinide avatar Jun 08 '20 11:06 Tinide