Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ruby/truffle/cext/ruby.h
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@ extern "C" {

// Basic types

typedef uint64_t VALUE;
//typedef uint64_t VALUE;
typedef void *VALUE;
typedef VALUE ID;

// Helpers

2 comments on commit c0918bf

@eregon
Copy link
Member

@eregon eregon commented on c0918bf Jul 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uintptr_t is a type that can be used as both, but I think void* is the more natural choice here anyway.

@chrisseaton
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We get errors when running in Sulong when using uint64_t. I'll try uintptr_t but I would imagine it will be the same error as it's still an integer. Needs investigation in Sulong.

Please sign in to comment.