From 8a4a0199736e3d54c2b9d4653bad9e6da58e4e8b Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 20 May 2018 18:18:34 +0200 Subject: [PATCH] Fix build issue with C++ --- m-variant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-variant.h b/m-variant.h index 2491edfe..f7007487 100644 --- a/m-variant.h +++ b/m-variant.h @@ -420,10 +420,10 @@ /* A buffer of 400 bytes should be more than enough for all variant names... */ \ char variantTypeBuf[400]; \ int c = *str++; \ + unsigned int i = 0; \ if (c != '@') goto exit; \ /* First read the name of the type */ \ c = *str++; \ - unsigned int i = 0; \ while (c != '@' && c != 0 && i < sizeof(variantTypeBuf) - 1) { \ variantTypeBuf[i++] = c; \ c = *str++; \