From ff3e54bea69d2ceb74bfc965cfea942b267d1548 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 16 Nov 2011 08:50:19 +0100 Subject: [PATCH] Bug 698933 - Don't return 'false' from CreateSharedMemory(); r=cojones --- ipc/ipdl/ipdl/lower.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/ipdl/ipdl/lower.py b/ipc/ipdl/ipdl/lower.py index ff47ab14ab7..d482be8c636 100644 --- a/ipc/ipdl/ipdl/lower.py +++ b/ipc/ipdl/ipdl/lower.py @@ -3367,7 +3367,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor): # SharedMemory* CreateSharedMemory(size, type, bool, id_t*): # nsAutoPtr seg(Shmem::Alloc(size, type, unsafe)); # if (!shmem) - # return false + # return null; # Shmem s(seg, [nextshmemid]); # Message descriptor; # if (!s->ShareTo(subprocess, mId, descriptor) || @@ -3395,7 +3395,7 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor): p.routingId())) ]) failif = StmtIf(ExprNot(descriptorvar)) - failif.addifstmt(StmtReturn.FALSE) + failif.addifstmt(StmtReturn(ExprLiteral.NULL)) createshmem.addstmt(failif) failif = StmtIf(ExprNot(ExprCall(