No need to dynamic_cast as the return type is already correct
This commit is contained in:
parent
e8ee266f3c
commit
f4d9f50a32
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ bool ModuleCache::evaluate(const std::string &filename, FileModule *&module)
|
|||
FileModule *oldmodule = lib_mod;
|
||||
|
||||
fs::path pathname = fs::path(filename);
|
||||
lib_mod = dynamic_cast<FileModule*>(parse(textbuf.str().c_str(), pathname, false));
|
||||
lib_mod = parse(textbuf.str().c_str(), pathname, false);
|
||||
PRINTDB(" compiled module: %p", lib_mod);
|
||||
|
||||
// We defer deletion so we can ensure that the new module won't
|
||||
|
|
|
|||
Loading…
Reference in a new issue