diff --git a/CMakeLists.txt b/CMakeLists.txt index cf50de9..3320603 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(fun VERSION 0.37.26 LANGUAGES C) +project(fun VERSION 0.37.27 LANGUAGES C) set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED ON) diff --git a/lib/crypt/ripemd160.fun b/lib/crypt/ripemd160.fun index bb9abd6..f866ab1 100644 --- a/lib/crypt/ripemd160.fun +++ b/lib/crypt/ripemd160.fun @@ -204,7 +204,7 @@ class RIPEMD160() B = T // Right side step - Tr = this.add32(this.rol32(this.add32(this.add32(Ar, this.F(stage_r, Br, Cr, Dr)), this.add32(M[this.RR[j]], this.KR[stage])), this.SR[j]), Er) + Tr = this.add32(this.rol32(this.add32(this.add32(Ar, this.F(stage_r, Br, Cr, Dr)), this.add32(M[this.RR[j]], this.KR[stage_r])), this.SR[j]), Er) Ar = Er Er = Dr Dr = this.rol32(Cr, 10) diff --git a/src/vm/os/serial_open.c b/src/vm/os/serial_open.c index 772776a..1694df3 100644 --- a/src/vm/os/serial_open.c +++ b/src/vm/os/serial_open.c @@ -15,6 +15,51 @@ #include /* Fallbacks for baud rates that might be missing on some systems */ +#ifndef B50 +#define B50 0000001 +#endif +#ifndef B75 +#define B75 0000002 +#endif +#ifndef B110 +#define B110 0000003 +#endif +#ifndef B134 +#define B134 0000004 +#endif +#ifndef B150 +#define B150 0000005 +#endif +#ifndef B200 +#define B200 0000006 +#endif +#ifndef B300 +#define B300 0000007 +#endif +#ifndef B600 +#define B600 0000010 +#endif +#ifndef B1200 +#define B1200 0000011 +#endif +#ifndef B1800 +#define B1800 0000012 +#endif +#ifndef B2400 +#define B2400 0000013 +#endif +#ifndef B4800 +#define B4800 0000014 +#endif +#ifndef B9600 +#define B9600 0000015 +#endif +#ifndef B19200 +#define B19200 0000016 +#endif +#ifndef B38400 +#define B38400 0000017 +#endif #ifndef B57600 #define B57600 0010001 #endif