1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-05 02:00:31 +08:00

优化define

This commit is contained in:
源文雨
2022-03-17 20:22:34 +08:00
parent 6d220dd575
commit 8d490096fd
2 changed files with 6 additions and 2 deletions

View File

@@ -39,7 +39,9 @@
//#define DEBUG
#define new malloc
#ifndef new
#define new malloc
#endif
LENDAT* encode(const uint8_t* data, const int32_t len) {
LENDAT* encd = (LENDAT*)new(sizeof(LENDAT));

View File

@@ -46,7 +46,9 @@
//#define DEBUG
#define new malloc
#ifndef new
#define new malloc
#endif
LENDAT* encode(const uint8_t* data, const int64_t len) {
LENDAT* encd = (LENDAT*)new(sizeof(LENDAT));