From 1ef5543f5bc93c622d16bdc2b4d00fd3022b2129 Mon Sep 17 00:00:00 2001 From: "Pavel N. Krivitsky" Date: Sat, 9 Dec 2023 19:04:06 +1100 Subject: [PATCH] Fixed a crash in the DyadGen code when generating a random non-edge from an RLEBDM. Thanks @benrosche for the report. fixes statnet/ergm#538 --- DESCRIPTION | 2 +- inst/include/ergm_dyadgen.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index dfbe39574..349f4b5ad 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: ergm -Version: 4.6-7277 +Version: 4.6-7278 Date: 2023-12-09 Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks Authors@R: c( diff --git a/inst/include/ergm_dyadgen.h b/inst/include/ergm_dyadgen.h index 129b74ec2..48e93bdb4 100644 --- a/inst/include/ergm_dyadgen.h +++ b/inst/include/ergm_dyadgen.h @@ -160,6 +160,7 @@ static inline void DyadGenRandNonedge(Vertex *tail, Vertex *head, DyadGen *gen){ case RLEBDM1DGen: case WtRLEBDM1DGen: GetRandRLEBDM1D(tail, head, &gen->dyads.rlebdm); + break; case EdgeListGen: case WtEdgeListGen: {