Make the primitives array const

Samuel Tardieu 2009-05-04 14:45:15 +02:00
parent af2c433d6b
commit c830bd7ee2
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
namespace factor namespace factor
{ {
primitive_type primitives[] = { const primitive_type primitives[] = {
primitive_bignum_to_fixnum, primitive_bignum_to_fixnum,
primitive_float_to_fixnum, primitive_float_to_fixnum,
primitive_fixnum_to_bignum, primitive_fixnum_to_bignum,

View File

@ -2,7 +2,7 @@ namespace factor
{ {
extern "C" typedef void (*primitive_type)(); extern "C" typedef void (*primitive_type)();
extern primitive_type primitives[]; extern const primitive_type primitives[];
#define PRIMITIVE(name) extern "C" void primitive_##name() #define PRIMITIVE(name) extern "C" void primitive_##name()