Update idl_gen_general.cpp
authorreynolma2 <mreynolds@wavesys.com>
Mon, 9 Mar 2015 18:35:18 +0000 (11:35 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Fri, 13 Mar 2015 20:05:03 +0000 (13:05 -0700)
commit6df9e1c537f566be082aa41c5e35628aa06733fc
tree13c64f85b7ba5ef2c95fd5b8438ceec2a93d02aa
parent6a0126340a3767cc6f4988b861f1340ce6a747ea
Update idl_gen_general.cpp

There is a bug in creating a C# table when it includes a field of type 'BOOL'. The problem is that the generate C# code is as follows:
  "bool SampleValue = 0;"
This will fail to compile, because in C# this fails, it needs to be generated as:
 "bool SampleValue = false;"

The error is in line ~510

Change-Id: I77f6eea0f269b0540dbeb462602fc447cb69237d
src/idl_gen_general.cpp