Skip to content

Instantly share code, notes, and snippets.

@djwhitt
Created October 27, 2008 01:37
Show Gist options
  • Save djwhitt/19994 to your computer and use it in GitHub Desktop.
Save djwhitt/19994 to your computer and use it in GitHub Desktop.
From 098c8d00a4315dbf1302cdfe02c993e4e3aa3200 Mon Sep 17 00:00:00 2001
From: David Whittington <djwhitt@gmail.com>
Date: Sun, 26 Oct 2008 21:27:42 -0400
Subject: [PATCH] Fix for hardcoded type_size in env.rb
---
kernel/common/env.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/common/env.rb b/kernel/common/env.rb
index df81906..6a317e7 100644
--- a/kernel/common/env.rb
+++ b/kernel/common/env.rb
@@ -148,7 +148,7 @@ class EnvironmentVariables
def to_hash
environ = EnvironmentVariables.environ
- environ.type_size = 4 # HACK no mapping from uintptr_t to 4 bytes
+ environ.type_size = FFI.type_size(FFI.find_type :pointer)
i = 0
--
1.6.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment