mirror of
https://github.com/Snapchat/KeyDB.git
synced 2026-11-25 23:49:40 -05:00
RM_CreateStringFromLongDouble: use new ld2string 'mode' type
This commit is contained in:
1 parent
060af1858d
commit
a68c19df6c
2 files changed
+6
-1
No files matched your search
@@ -6,6 +6,8 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define UNUSED(x) (void)(x)
|
||||
|
||||
int test_call_generic(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
|
||||
{
|
||||
if (argc<2) {
|
||||
@@ -41,6 +43,8 @@ int test_call_info(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
|
||||
}
|
||||
|
||||
int test_ld_conv(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
|
||||
UNUSED(argv);
|
||||
UNUSED(argc);
|
||||
long double ld = 0.00000000000000001L;
|
||||
const char *ldstr = "0.00000000000000001";
|
||||
RedisModuleString *s1 = RedisModule_CreateStringFromLongDouble(ctx, ld, 1);
|
||||
|
||||
Reference in new issue
Block a user