From: "助田 雅紀" Date: 1998-07-01T08:17:08+09:00 Subject: [ruby-dev:3149] Re: bignum of ruby11b9_28 助田です。 In [ruby-dev:3136] Re: bignum of ruby11b9_28 >えぐち@エスアンドイー です。 >少し調べたのですが、なんとなく unsigned long が疑わしいです。 > #define BIGUP(x) ((unsigned int)(x) << BITSPERDIG) >-#define BIGDN(x) RSHIFT(((signed)(x)),BITSPERDIG) >+#define BIGDN(x) RSHIFT((x),BITSPERDIG) > #define BIGLO(x) ((x) & (BIGRAD-1)) bignum.c のコンパイル時に "signed" will become a keyword. とwarning が出て リンク時に /usr/ccs/bin/ld: Unsatisfied symbols: signed (code) といわれてリンクに失敗します。 ちょっと調べている余裕が無いもので結果だけ報告しておきます。 すいません。 助田雅紀(masaki.suketa@tonen.co.jp)