added minimum for decoder buffer

also : introduced macro BOUNDED()
This commit is contained in:
Yann Collet committed 2021-10-26 08:21:31 -07:00
1 parent 02be2a830f
commit 518f06b281
5 files changed
+8 -6

No files matched your search

+1
View File
@@ -57,6 +57,7 @@ extern "C" {
#undef MAX
#define MIN(a,b) ((a)<(b) ? (a) : (b))
#define MAX(a,b) ((a)>(b) ? (a) : (b))
#define BOUNDED(min,val,max) (MAX(min,MIN(val,max)))
/*-*************************************