aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-26 15:45:05 +0200
committerSverker Eriksson <[email protected]>2018-03-26 15:45:05 +0200
commitb48df378266717e1f6b79b96eb0f69cb08081585 (patch)
tree122052a9b4bdaab7aca7578bce7b6347ee33cdc8 /erts/emulator/beam/io.c
parent8fea289244d8758c69b8c8443679b2d73cb2f70d (diff)
downloadotp-b48df378266717e1f6b79b96eb0f69cb08081585.tar.gz
otp-b48df378266717e1f6b79b96eb0f69cb08081585.tar.bz2
otp-b48df378266717e1f6b79b96eb0f69cb08081585.zip
erts: Fix harmless bug in macro IS_DRIVER_VERSION_GE
harmless until we bump major version
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index e4a5f2b6b6..410fe89b02 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -7613,7 +7613,8 @@ no_stop_select_callback(ErlDrvEvent event, void* private)
}
#define IS_DRIVER_VERSION_GE(DE,MAJOR,MINOR) \
- ((DE)->major_version >= (MAJOR) && (DE)->minor_version >= (MINOR))
+ ((DE)->major_version > (MAJOR) || \
+ ((DE)->major_version == (MAJOR) && (DE)->minor_version >= (MINOR)))
static int
init_driver(erts_driver_t *drv, ErlDrvEntry *de, DE_Handle *handle)