From c82c6f478bb1cf5ee1d8cfd5ae48810530e876fb Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Wed, 26 Apr 2017 17:21:44 +0000 Subject: [PATCH] Tweaked C code to give explicit value to Ecc enum, to approve of casting enum values to/from int. --- c/qrcodegen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/qrcodegen.h b/c/qrcodegen.h index f4c4f9f..a945b17 100644 --- a/c/qrcodegen.h +++ b/c/qrcodegen.h @@ -33,7 +33,7 @@ * Represents the error correction level used in a QR Code symbol. */ enum qrcodegen_Ecc { - qrcodegen_Ecc_LOW, + qrcodegen_Ecc_LOW = 0, qrcodegen_Ecc_MEDIUM, qrcodegen_Ecc_QUARTILE, qrcodegen_Ecc_HIGH,