Skip to content

Commit

Permalink
stringnode: set max_length to maxint64 in case of floating node
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelP committed May 12, 2021
1 parent 1c35d7e commit 57ab086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/arvgcstringnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ arv_gc_string_node_get_max_length (ArvGcString *gc_string, GError **error)
return arv_gc_string_get_max_length (ARV_GC_STRING (linked_node), error);
}

return 1024;
return G_MAXINT64;
}

static void
Expand Down
2 changes: 1 addition & 1 deletion tests/genicam.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ string_test (void)
g_assert (ARV_IS_GC_STRING (node_str));

value = arv_gc_string_get_max_length (ARV_GC_STRING (node_str), &error);
g_assert_cmpint (value, ==, 1024);
g_assert_cmpint (value, ==, G_MAXINT64);
g_assert (error == NULL);

str = arv_gc_string_get_value (ARV_GC_STRING (node_str), &error);
Expand Down

0 comments on commit 57ab086

Please sign in to comment.