Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

encoding of Nu 't' symbol.

  • Loading branch information...
commit dc3aa9c44cfdf773ccaef6c4139a57b649dfca33 1 parent 9ed2396
@timburks authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 objc/NuBSON.m
View
5 objc/NuBSON.m
@@ -180,6 +180,11 @@ void add_object_to_bson_buffer(bson_buffer *bb, id key, id object)
bson_append_finish_object(arr);
}
}
+ else if (NuSymbol && [object isKindOfClass:[NuSymbol class]]) {
+ if ([[object stringValue] isEqualToString:@"t"]) {
+ bson_append_bool(bb, name, YES);
+ }
+ }
else if ([object respondsToSelector:@selector(cStringUsingEncoding:)]) {
bson_append_string(bb, name,[object cStringUsingEncoding:NSUTF8StringEncoding]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.