Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Dec 10, 2024
1 parent 7f118b8 commit cdcb23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nunavut/lang/c/templates/serialization.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

{# ----------------------------------------------------------------------------------------------------------------- #}
{% macro _serialize_impl(t) %}
const {{ typename_unsigned_length }} capacity_bytes = *inout_buffer_size_bytes;
{%- if not options.disable_serialization_buffer_check %}
{%- if options.enable_override_variable_array_capacity %}
#ifndef {{ t | full_reference_name }}_DISABLE_SERIALIZATION_BUFFER_CHECK_
{% endif %}
const {{ typename_unsigned_length }} capacity_bytes = *inout_buffer_size_bytes;
if ((8U * ({{ typename_unsigned_bit_length }}) capacity_bytes) < {{ t.inner_type.bit_length_set.max }}UL)
{
return -NUNAVUT_ERROR_SERIALIZATION_BUFFER_TOO_SMALL;
Expand Down

0 comments on commit cdcb23c

Please sign in to comment.