Skip to content

Commit 9e3f76e

Browse files
committed
Return for error case and not when successfull while saving a pyc file
1 parent 27c009a commit 9e3f76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/lpython.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ int compile_python_to_object_file(
571571
LFortran::ASR::TranslationUnit_t* asr = r1.result;
572572
{
573573
int err = save_pyc_files(*asr, infile);
574-
if( !err ) {
574+
if( err ) {
575575
return err;
576576
}
577577
}

0 commit comments

Comments
 (0)