зеркало из https://github.com/mozilla/pjs.git
use static_cast instead of dynamic_cast. silly cjones.
This commit is contained in:
Родитель
42225efe1a
Коммит
e470263248
|
@ -752,7 +752,7 @@ class GenerateProtocolActorHeader(Visitor):
|
|||
bvar,
|
||||
cxx.ExprCast(
|
||||
cxx.ExprCall(cxx.ExprVar('Lookup'), [ objid ]),
|
||||
objtype, dynamic=1))))
|
||||
objtype, static=1))))
|
||||
failif = cxx.StmtIf(cxx.ExprBinary(objvar, '!=', bvar))
|
||||
failif.ifb.addstmt(cxx.StmtReturn(valueerrcode))
|
||||
impl.addstmt(failif)
|
||||
|
@ -923,7 +923,7 @@ class GenerateProtocolActorHeader(Visitor):
|
|||
dcast = cxx.ExprCast(
|
||||
cxx.ExprCall(cxx.ExprVar('Lookup'), [ routevar ]),
|
||||
objtype,
|
||||
dynamic=1)
|
||||
static=1)
|
||||
block.addstmt(cxx.StmtExpr(cxx.ExprAssn(objvar, dcast)))
|
||||
|
||||
failif = cxx.StmtIf(cxx.ExprPrefixUnop(objvar, '!'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче