Fix build issue with C++
This commit is contained in:
1 parent
a1a49ebf4b
commit
8a4a019973
1 file changed
+1
-1
+1
-1
@@ -420,10 +420,10 @@
|
|||||||
/* A buffer of 400 bytes should be more than enough for all variant names... */ \
|
/* A buffer of 400 bytes should be more than enough for all variant names... */ \
|
||||||
char variantTypeBuf[400]; \
|
char variantTypeBuf[400]; \
|
||||||
int c = *str++; \
|
int c = *str++; \
|
||||||
|
unsigned int i = 0; \
|
||||||
if (c != '@') goto exit; \
|
if (c != '@') goto exit; \
|
||||||
/* First read the name of the type */ \
|
/* First read the name of the type */ \
|
||||||
c = *str++; \
|
c = *str++; \
|
||||||
unsigned int i = 0; \
|
|
||||||
while (c != '@' && c != 0 && i < sizeof(variantTypeBuf) - 1) { \
|
while (c != '@' && c != 0 && i < sizeof(variantTypeBuf) - 1) { \
|
||||||
variantTypeBuf[i++] = c; \
|
variantTypeBuf[i++] = c; \
|
||||||
c = *str++; \
|
c = *str++; \
|
||||||
|
|||||||
Reference in new issue
Block a user