commit 9bd8349d41236e9e58b942a44dbb5c6df3a58bbf
parent 4fd0b131476b954c23cc3d0da23d547ff77f28aa
Author: Boss Marco <bossm8@students.bfh.ch>
Date: Tue, 12 Nov 2019 18:50:46 +0100
bug detected, see README
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README b/README
@@ -19,8 +19,9 @@
This is a app to run a snack machine as taler merchant with nfc payment interface.
#### Tasks
- * Add libjansson to parse and create json objects
- * Build system, makefile provided is not suitable
+ * fix bug when order pending -> press cancel -> abort from gunent scheduler
+ Nov 12 18:47:04-224202 util-scheduler-4656 ERROR `select' failed at scheduler.c:2336 with error: Bad file descriptor
+ Nov 12 18:47:04-224321 taler-mdb-4656 ERROR Assertion failed at scheduler.c:2370. Aborting.
#### Remarks
* When using an ACR122 device there may be problems with libnfc, see libnfc for further information
diff --git a/src/main.c b/src/main.c
@@ -215,7 +215,7 @@ show_qrcode (const char *uri)
{
unsigned int off =
(x * qrc->width / size) + (y * qrc->width / size) * qrc->width;
- for (int c = 0; c < n_channels; c++)
+ for (unsigned int c = 0; c < n_channels; c++)
pixels[(y * size + x) * n_channels + c] =
(0 == (qrc->data[off] & 1)) ? 0xFF : 0;
}