[m-rev.] for review: add a builtin unsigned word sized integer type -- Part 1
Julien Fischer
jfischer at opturion.com
Tue Oct 25 14:59:49 AEDT 2016
On Tue, 25 Oct 2016, Peter Wang wrote:
> On Mon, 24 Oct 2016 12:50:00 +1100 (AEDT), Julien Fischer <jfischer at opturion.com> wrote:
>> diff --git a/runtime/mercury_tabling_macros.h b/runtime/mercury_tabling_macros.h
>> index dc2f21d..f904391 100644
>> --- a/runtime/mercury_tabling_macros.h
>> +++ b/runtime/mercury_tabling_macros.h
>> @@ -217,6 +223,19 @@
>> } \
>> } while (0)
>>
>> +#define MR_TABLE_UINT(stats, debug, back, t, t0, value) \
>> + do { \
>> + if (stats != NULL) { \
>> + (t) = MR_RAW_TABLE_UINT_STATS((stats), (t0), (value)); \
>> + } else { \
>> + (t) = MR_RAW_TABLE_UINT((t0), (value)); \
>> + } \
>> + if (MR_tabledebug) { \
>> + printf("TABLE %p: uint %ud => %p\n", \
>> + (t0), (long) (value), (t)); \
>> + } \
>> + } while (0)
>
> %ud -> %u
> long -> unsigned long
Fixed.
Thanks,
Julien.
More information about the reviews
mailing list