Skip to content

Commit

Permalink
Remove unused attribute from structs
Browse files Browse the repository at this point in the history
See #559
  • Loading branch information
aleasims committed Mar 6, 2024
1 parent ccbdf01 commit 7f51caf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
int global = 5;
constexpr int num_elems = 3;

struct __attribute__((packed)) chain {
struct chain {
int val;
chain *next;
};
Expand Down
4 changes: 2 additions & 2 deletions examples/cpp/zkbridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using namespace nil::crypto3::algebra::curves;
typedef __attribute__((ext_vector_type(4)))
typename pallas::base_field_type::value_type eddsa_message_block_type;

typedef struct __attribute__((packed)) {
typedef struct {
typename ed25519::template g1_type<>::value_type R;
typename ed25519::scalar_field_type::value_type s;
} eddsa_signature_type;
Expand All @@ -24,7 +24,7 @@ bool verify_eddsa_signature (eddsa_signature_type input,
return B*input.s == (input.R + (pk*k));
}

typedef struct __attribute__((packed)) {
typedef struct {
typename hashes::sha2<256>::block_type prev_block_hash;
typename hashes::sha2<256>::block_type data;
std::array<eddsa_signature_type, 4> validators_signatures;
Expand Down

0 comments on commit 7f51caf

Please sign in to comment.