diff options
-rw-r--r-- | src/tls/tls_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index b79d30c03..e71ba12c2 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -534,8 +534,9 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle, size_t req_size = 0; if (len == 4) { + unsigned char *b = (unsigned char *)buf; req_size = - (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; + (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3]; } size = BUF_SIZE + 1; rlen = 1; |