Skip to content

Commit f14b938

Browse files
committed
FilePlugin: for consistency have sqFilePluginBasicPrims.c answer 0 for the
size of a stdio stream, rather than fail.
1 parent 48b0ee9 commit f14b938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ sqFileSize(SQFile *f) {
746746
if (!sqFileValid(f))
747747
return interpreterProxy->success(false);
748748
if (f->isStdioStream)
749-
return interpreterProxy->success(false);
749+
return 0;
750750
return getSize(f);
751751
}
752752

0 commit comments

Comments
 (0)