Module: kamailio
Branch: master
Commit: 04763fe7de760005535e145f7fd783bbb60b2586
URL:
https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-20T10:14:27+01:00
core: utils/srjon - macros to get long long values
---
Modified: src/core/utils/srjson.h
---
Diff:
https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783b…
Patch:
https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783b…
---
diff --git a/src/core/utils/srjson.h b/src/core/utils/srjson.h
index dd56449340..dce2ae9252 100644
--- a/src/core/utils/srjson.h
+++ b/src/core/utils/srjson.h
@@ -53,6 +53,8 @@ extern "C"
#define SRJSON_GET_UINT(sj) ((unsigned int)((sj)->valuedouble))
#define SRJSON_GET_LONG(sj) ((long)((sj)->valuedouble))
#define SRJSON_GET_ULONG(sj) ((unsigned long)((sj)->valuedouble))
+#define SRJSON_GET_LLONG(sj) ((long long)((sj)->valuedouble))
+#define SRJSON_GET_ULLONG(sj) ((unsigned long long)((sj)->valuedouble))
/* The srjson node structure: */
typedef struct srjson {