]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Grr stupid generics
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Jan 2021 16:18:25 +0000 (16:18 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Jan 2021 16:18:25 +0000 (16:18 +0000)
src/lib/util/dbuff.h

index 3c02e5baed5f0e665d93d5c66a7226374988fa49..05d0b7e52e10aac9a6d8f797158da7561eed0287 100644 (file)
@@ -941,7 +941,7 @@ _fr_dbuff_set(\
                        unsigned int : (size_t)(_len), \
                        unsigned long : (size_t)(_len), \
                        unsigned long long : (size_t)(_len), \
-                       int : (fr_cond_assert((_len) >= 0) ? (size_t)(_len) : 0) \
+                       int : (fr_cond_assert((int)(_len) >= 0) ? (size_t)(_len) : 0) \
                     ))))
 
 /** Advance the 'current' position in dbuff or marker by _len bytes returning if _len is out of range