Skip to content

Commit

Permalink
auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
JBenda committed Mar 28, 2023
1 parent 9976786 commit ab1f9c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/core/jsemantics.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ guint32 j_semantics_serialize(const JSemantics* semantics);
* Decode serialized semantics, and create new Semantics
*
* For a example see j_semantics_serialize()
*
*
* \param serial_semantics serialized semantics, created with j_semantics_serialize()
*
* \return new created JSemantics
Expand Down
2 changes: 1 addition & 1 deletion lib/core/jsemantics.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ j_semantics_serialize(const JSemantics* semantics)
guint32 serialized_semantics = 0;

g_return_val_if_fail(semantics != NULL, 0);

#define SERIALIZE_SEMANTICS(type, key) \
{ \
gint tmp; \
Expand Down
6 changes: 4 additions & 2 deletions tools/access_replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,11 @@ static void
update_semantics(JSemantics** semantics, guint32* serial_semantics, const char* parts_semantics_str)
{
guint32 parts_semantics = parse_ul(parts_semantics_str);
if(*semantics == NULL || *serial_semantics != parts_semantics) {
if (*semantics == NULL || *serial_semantics != parts_semantics)
{
*serial_semantics = parts_semantics;
if(*semantics) {
if (*semantics)
{
j_semantics_unref(*semantics);
}
*semantics = j_semantics_deserialize(*serial_semantics);
Expand Down

0 comments on commit ab1f9c6

Please sign in to comment.