mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
use ISC_PRINT_QUADFORMAT
This commit is contained in:
parent
3f06b888ae
commit
278f78a45b
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include <isc/buffer.h>
|
#include <isc/buffer.h>
|
||||||
#include <isc/mem.h>
|
#include <isc/mem.h>
|
||||||
|
#include <isc/print.h>
|
||||||
#include <isc/region.h>
|
#include <isc/region.h>
|
||||||
#include <isc/string.h>
|
#include <isc/string.h>
|
||||||
#include <isc/util.h>
|
#include <isc/util.h>
|
||||||
@ -474,7 +475,7 @@ isc_buffer_putdecint(isc_buffer_t *b, isc_int64_t v) {
|
|||||||
REQUIRE(ISC_BUFFER_VALID(b));
|
REQUIRE(ISC_BUFFER_VALID(b));
|
||||||
|
|
||||||
/* xxxwpk do it more low-level way ? */
|
/* xxxwpk do it more low-level way ? */
|
||||||
l = snprintf(buf, 21, "%lld", v);
|
l = snprintf(buf, 21, "%" ISC_PRINT_QUADFORMAT "d", v);
|
||||||
RUNTIME_CHECK(l <= 21);
|
RUNTIME_CHECK(l <= 21);
|
||||||
if (b->autore) {
|
if (b->autore) {
|
||||||
result = isc_buffer_reserve(&b, l);
|
result = isc_buffer_reserve(&b, l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user