Skip to content

Commit

Permalink
fix id
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtTilmes committed Apr 25, 2017
1 parent a4fa2d3 commit 4c38165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eg/multi.pl6
Expand Up @@ -8,8 +8,8 @@ my $curl2 = LibCurl::Easy.new(:followlocation, URL => 'http://example.com');

sub callback(LibCurl::Easy $easy, Exception $e)
{
die $e if $e;
say $easy.statusline;
say $easy.effective-url, " finished";
say $e ?? "error: $e.message()" !! $easy.statusline;
}

my $multi = LibCurl::Multi.new(callback => &callback);
Expand Down
2 changes: 1 addition & 1 deletion lib/LibCurl/EasyHandle.pm6
Expand Up @@ -753,7 +753,7 @@ class LibCurl::EasyHandle is repr('CPointer')
method new() returns LibCurl::EasyHandle { curl_easy_init }

method id() returns Int {
return +nativecast(intptr, self);
return +nativecast(Pointer, self);
}

method cleanup() { curl_easy_cleanup(self) }
Expand Down

0 comments on commit 4c38165

Please sign in to comment.