Skip to content

Commit

Permalink
refactor: change way to determine size
Browse files Browse the repository at this point in the history
  • Loading branch information
aiq committed Aug 23, 2024
1 parent 415ff6f commit 2c55582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/clingo/lang/slice.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ typedef struct Entry##Slice Entry##Slice;

#define slice_c_( Type, ... ) \
{ \
.s=nargs_c_( __VA_ARGS__ ), \
.s=( sizeof( (Type[]){ __VA_ARGS__ } ) / sizeof( Type ) ), \
.v=(Type[]){ __VA_ARGS__ } \
}

Expand Down

0 comments on commit 2c55582

Please sign in to comment.