Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix: Msg.move requires a ref parameter.

Signed-off-by: Lewis Gunsch <lewis@gunsch.ca>
  • Loading branch information...
commit 056f678b163e0b1bdecd61e5de370535fc1893fb 1 parent ba81568
@lgunsch authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  examples/msgtest.vala
  2. +1 −1  libzmq.vapi
View
2  examples/msgtest.vala
@@ -26,7 +26,7 @@ public static void test_msg_move() {
Msg src = Msg.with_data ("Hello".data);
stdout.printf("Message source size is %d.\n", (int)src.size ());
Msg dst = Msg ();
- src.move (dst);
+ src.move (ref dst);
stdout.printf("Destination size is now %d.\n", (int)dst.size ());
}
View
2  libzmq.vapi
@@ -81,7 +81,7 @@ namespace ZMQ {
public size_t size ();
[CCode (instance_pos = -1)]
- public int move (Msg dest);
+ public int move (ref Msg dest);
}
[CCode (cname = "int", cprefix = "ZMQ_")]
Please sign in to comment.
Something went wrong with that request. Please try again.