diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-10-14 23:40:38 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-10-14 23:57:15 +0200 |
commit | da43b9311a53daa9c120735c60e9ba9e1955990c (patch) | |
tree | b5e36fe47b246e270cc862a38b8c3556ed27f3f1 /brandt.c | |
parent | fc9fdd313bc08a4f290780dfa1cf9133eddf3bf3 (diff) | |
download | libbrandt-da43b9311a53daa9c120735c60e9ba9e1955990c.tar.gz libbrandt-da43b9311a53daa9c120735c60e9ba9e1955990c.zip |
fix preparation for M+1st price auctions
Diffstat (limited to 'brandt.c')
-rw-r--r-- | brandt.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |