diff --git a/lazy.h b/lazy.h index a205552..1781515 100644 --- a/lazy.h +++ b/lazy.h @@ -110,11 +110,7 @@ long long lz_slc_atoll(Lz_Slc *src); #endif #ifndef lz_da_pop -#define lz_da_pop(da) do {\ - if ((da).cnt > 0) {\ - (da).cnt--;\ - }\ -} while(0) +#define lz_da_pop(da) ((da).cnt >= 1 ? (da).data[--(da).cnt] : NULL) #endif #ifndef lz_da_concat