Skip to content

Commit

Permalink
Keep compiler happy
Browse files Browse the repository at this point in the history
Under Python 2 READBUFFERVARS expands to nothing, so we have
a bare semicolon.  FILEPREAMBLE then declares some more variables
but the compiler chokes because of the bare semi-colon only statement.
  • Loading branch information
rogerbinns committed Apr 12, 2021
1 parent c6865af commit d52777b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2041,8 +2041,9 @@ apswvfsfile_xRead(sqlite3_file *file, void *bufout, int amount, sqlite3_int64 of
int asrb = -1;
Py_ssize_t buflen;
const void *buffer;
#if PY_MAJOR_VERSION >= 3
READBUFFERVARS;

#endif
FILEPREAMBLE;

pybuf = Call_PythonMethodV(apswfile->file, "xRead", 1, "(iL)", amount, offset);
Expand Down

0 comments on commit d52777b

Please sign in to comment.