From a8c4325a287a375e44149beeb9d970a7876c1254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=B8=8C=E5=A4=B7?= <63851587@qq.com> Date: Wed, 7 Apr 2021 12:36:16 +0800 Subject: [PATCH] =?UTF-8?q?!3=20=E4=BF=AE=E5=A4=8Dinit=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PHP/snowdrift.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHP/snowdrift.c b/PHP/snowdrift.c index c92f5c9..1262378 100644 --- a/PHP/snowdrift.c +++ b/PHP/snowdrift.c @@ -64,12 +64,12 @@ static int snowdrift_init() if (shm_alloc(&shmctx) == -1) { zend_throw_exception_ex(NULL, 0, "shared memory malloc failed"); - RETURN_FALSE; + return FAILURE; } if (SD_G(MaxSeqNumber) <= SD_G(MinSeqNumber)) { zend_throw_exception_ex(NULL, 0, "MaxSeqNumber must GE then MinSeqNumber"); - RETURN_FALSE; + return FAILURE; } bzero(shmctx.addr, num * sizeof(snowflake)); sf = (snowflake *)shmctx.addr;