[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: x86_64 -- warning and errors

From: Yukihiro Matsumoto <matz@...>
Date: 2004-11-02 15:55:19 UTC
List: ruby-core #3683
Hi,

In message "Re: x86_64 -- warning and errors"
    on Tue, 2 Nov 2004 22:12:57 +0900, ts <decoux@moulon.inra.fr> writes:

|gcc -g -O2   -I. -I.  -c regexec.c
|regexec.c: In function `match_at':
|regexec.c:1147: warning: cast to pointer from integer of different size

|  1) Failure:
|test_sum(TestString)
|    [./ruby/test_string.rb:8:in `check_sum'
|     ./ruby/test_string.rb:16:in `test_sum'
|     ./ruby/test_string.rb:15:in `upto'
|     ./ruby/test_string.rb:15:in `test_sum']:
|<363> expected but was
|<0>.

Does this patch improve the situation?

							matz.

--- string.c	31 Oct 2004 17:37:52 -0000	1.213
+++ string.c	2 Nov 2004 15:52:40 -0000
@@ -4455,3 +4455,3 @@ rb_str_sum(argc, argv, str)
     else {
-	unsigned int sum = 0;
+	unsigned long sum = 0;
 
Index: regexec.c
===================================================================
RCS file: /var/cvs/src/ruby/regexec.c,v
retrieving revision 1.3
diff -p -u -1 -r1.3 regexec.c
--- regexec.c	1 Nov 2004 23:49:15 -0000	1.3
+++ regexec.c	2 Nov 2004 15:52:40 -0000
@@ -256,3 +256,3 @@ onig_region_copy(OnigRegion* to, OnigReg
 #define INVALID_STACK_INDEX   -1
-typedef int  StackIndex;
+typedef long  StackIndex;
 

In This Thread