From 24c3ff386cd5c0b85d4bbc23e8c1add226fe6572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Sat, 22 Oct 2022 17:28:40 +0300 Subject: [PATCH] Fix obvious errors caught by compiler --- qpms/ewald.c | 2 +- qpms/latticegens.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qpms/ewald.c b/qpms/ewald.c index cebf428..943a37a 100644 --- a/qpms/ewald.c +++ b/qpms/ewald.c @@ -562,7 +562,7 @@ int ewald3_1_z_sigma_long ( assert(beta.x == 0 && beta.y == 0); assert(particle_shift.x == 0 && particle_shift.y == 0); const double beta_z = beta.z; - const double particle_shift_z = particle_shift_z; + const double particle_shift_z = particle_shift.z; const qpms_y_sc_t nelem_sc = c->nelem_sc; const qpms_l_t lMax = c->lMax; diff --git a/qpms/latticegens.c b/qpms/latticegens.c index 36559ec..f369e42 100644 --- a/qpms/latticegens.c +++ b/qpms/latticegens.c @@ -621,10 +621,10 @@ typedef struct PGen_LatticeRadialHeap_StateData { size_t heap_capacity; double *r_heap; int *coord_heap; - double b[0]; // basis vectors and offset double offset_r; double minR, maxR; bool inc_minR, inc_maxR; + double b[0]; // basis vectors and offset } PGen_LatticeRadialHeap_StateData; static inline double nd2norm(const double a[], int d) {