From b3545895d1bb5a72e1311022c69b882d6ce90033 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 26 Aug 2010 01:50:07 +0000 Subject: * regint.h (OnigStackIndex): the type should be intptr_t. Original Oniguruma assumes the size of long and that of void * are equal, but it's not true on LLP64 platform: mswin64. originally patched by shintaro kuwamoto [ruby-dev:42133] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regint.h') diff --git a/regint.h b/regint.h index 633cd885c6..ca9f2b12c8 100644 --- a/regint.h +++ b/regint.h @@ -720,7 +720,7 @@ typedef struct { BBuf* mbuf; /* multi-byte info or NULL */ } CClassNode; -typedef long OnigStackIndex; +typedef intptr_t OnigStackIndex; typedef struct _OnigStackType { unsigned int type; -- cgit v1.2.3