summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDerek Bailey <dbaileychess@gmail.com>2019-10-28 09:43:33 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-10-28 09:43:33 -0700
commit480815447af30b52b36a7a81c37a41d0d30aac54 (patch)
tree7fb205c93c803b69dca0310e74a7e73c62cfa071 /samples
parent8d5e424c6549b904504f17ddd14b76bb3cdbe8d0 (diff)
downloadflatbuffers-480815447af30b52b36a7a81c37a41d0d30aac54.tar.gz
flatbuffers-480815447af30b52b36a7a81c37a41d0d30aac54.tar.bz2
flatbuffers-480815447af30b52b36a7a81c37a41d0d30aac54.zip
C++ verifier for evolved union fields should return true (#5586)
Diffstat (limited to 'samples')
-rw-r--r--samples/monster_generated.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/monster_generated.h b/samples/monster_generated.h
index 50ce9c00..ec2c24ce 100644
--- a/samples/monster_generated.h
+++ b/samples/monster_generated.h
@@ -655,7 +655,7 @@ inline bool VerifyEquipment(flatbuffers::Verifier &verifier, const void *obj, Eq
auto ptr = reinterpret_cast<const MyGame::Sample::Weapon *>(obj);
return verifier.VerifyTable(ptr);
}
- default: return false;
+ default: return true;
}
}