Created
October 27, 2008 01:55
-
-
Save djwhitt/19999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5.6.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment