Permalink
Browse files

Merge pull request #10 from rnewson/fix-booleans

fix Scala->Erlang boolean conversion
  • Loading branch information...
2 parents 0bbc038 + af00d8f commit a78ed850ef05893feea2cf9dc2cc5ce83bf8bc04 @moonpolysoft moonpolysoft committed Apr 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/scala/scalang/node/ScalaTermEncoder.scala
@@ -74,6 +74,10 @@ class ScalaTermEncoder(peer: Symbol) extends OneToOneEncoder with Logging with I
writeFloat(buffer, f)
case d : Double =>
writeFloat(buffer, d)
+ case true =>
+ writeAtom(buffer, 'true)
+ case false =>
+ writeAtom(buffer, 'false)
case s : Symbol =>
writeAtom(buffer, s)
case Reference(node, id, creation) => //we only emit new references

0 comments on commit a78ed85

Please sign in to comment.