Explorar o código

ncd/modules/to_string.c: support non-ContinuousString strings

ambrop7 %!s(int64=13) %!d(string=hai) anos
pai
achega
ac23653034
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      ncd/modules/to_string.c

+ 2 - 1
ncd/modules/to_string.c

@@ -104,7 +104,8 @@ static struct NCDModule modules[] = {
         .func_new2 = func_new,
         .func_die = func_die,
         .func_getvar2 = func_getvar2,
-        .alloc_size = sizeof(struct instance)
+        .alloc_size = sizeof(struct instance),
+        .flags = NCDMODULE_FLAG_ACCEPT_NON_CONTINUOUS_STRINGS
     }, {
         .type = NULL
     }