2006-04-16から1日間の記事一覧

符号つき整数の拡張

C

むう? 規格にこれの規定って無かった? 見当たらんけど… uint32_t x = (int8_t)-1;6.3.1.8 (Usual Arithmetic Conversion) には "[...]the operand with signed integer type is converted to the type of the operand with unsigned integer type." とあるだ…

はへ?

/* * FIXME: Support 64-bit data models * [...] * - (low priority) change ScmObj definition to the union below to support * ILP32 with 64-bit long long */ #if 0 /* FIXME: adapt to this to support ILP32 with 64-bit long long */ /* To allow s…