diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-03 17:04:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-03 17:04:31 +0100 |
commit | e69b7e82884cb7af5a3df4677da45f04060deac4 (patch) | |
tree | 62ad99e7f75df1097861a9b48136cf52a03b5f18 | |
parent | 41f768f3f336678ad7735c24f6f2e7814acd1988 (diff) | |
download | micropython-e69b7e82884cb7af5a3df4677da45f04060deac4.tar.gz micropython-e69b7e82884cb7af5a3df4677da45f04060deac4.zip |
unix, file.c: adhere to coding conventions.
-rw-r--r-- | unix/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/file.c b/unix/file.c index 1e7d3a9053..4588d96574 100644 --- a/unix/file.c +++ b/unix/file.c @@ -20,8 +20,9 @@ typedef struct _mp_obj_fdfile_t { #ifdef MICROPY_CPYTHON_COMPAT void check_fd_is_open(const mp_obj_fdfile_t *o) { - if (o->fd < 0) + if (o->fd < 0) { nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file")); + } } #else #define check_fd_is_open(o) |