diff --git a/source/vibe/data/bson.d b/source/vibe/data/bson.d index eaa94e8d58..371b841fb6 100644 --- a/source/vibe/data/bson.d +++ b/source/vibe/data/bson.d @@ -1079,7 +1079,7 @@ private Bson.Type writeBson(R)(ref R dst, in Json value) case Json.Type.Null: return Bson.Type.Null; case Json.Type.Bool: - dst.put(cast(ubyte)(cast(bool)value ? 0x00 : 0x01)); + dst.put(cast(ubyte)(cast(bool)value ? 0x01 : 0x00)); return Bson.Type.Bool; case Json.Type.Int: auto v = cast(long)value;