aboutsummaryrefslogtreecommitdiff
path: root/brandt.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-10-14 23:40:38 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-10-14 23:57:15 +0200
commitda43b9311a53daa9c120735c60e9ba9e1955990c (patch)
treeb5e36fe47b246e270cc862a38b8c3556ed27f3f1 /brandt.c
parentfc9fdd313bc08a4f290780dfa1cf9133eddf3bf3 (diff)
downloadlibbrandt-da43b9311a53daa9c120735c60e9ba9e1955990c.tar.gz
libbrandt-da43b9311a53daa9c120735c60e9ba9e1955990c.zip
fix preparation for M+1st price auctions
Diffstat (limited to 'brandt.c')
-rw-r--r--brandt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/brandt.c b/brandt.c
index 0c7b40e..337de57 100644
--- a/brandt.c
+++ b/brandt.c
@@ -73,7 +73,10 @@ BRANDT_bidder_start (struct BRANDT_Auction *auction,
73 * encrypt_bid round to show that the bidder has chosen a valid bid and the 73 * encrypt_bid round to show that the bidder has chosen a valid bid and the
74 * outcome callback will remap the result to the original k price values. */ 74 * outcome callback will remap the result to the original k price values. */
75 if (auction_mPlusFirstPrice == atype) 75 if (auction_mPlusFirstPrice == atype)
76 {
76 auction->k *= n; 77 auction->k *= n;
78 auction->b = auction->b * n + n - i - 1;
79 }
77 80
78 if (handler_prep[atype][outcome][msg_init]) 81 if (handler_prep[atype][outcome][msg_init])
79 handler_prep[atype][outcome][msg_init] (auction); 82 handler_prep[atype][outcome][msg_init] (auction);