Make the primitives array const
parent
af2c433d6b
commit
c830bd7ee2
|
@ -3,7 +3,7 @@
|
|||
namespace factor
|
||||
{
|
||||
|
||||
primitive_type primitives[] = {
|
||||
const primitive_type primitives[] = {
|
||||
primitive_bignum_to_fixnum,
|
||||
primitive_float_to_fixnum,
|
||||
primitive_fixnum_to_bignum,
|
||||
|
|
|
@ -2,7 +2,7 @@ namespace factor
|
|||
{
|
||||
|
||||
extern "C" typedef void (*primitive_type)();
|
||||
extern primitive_type primitives[];
|
||||
extern const primitive_type primitives[];
|
||||
|
||||
#define PRIMITIVE(name) extern "C" void primitive_##name()
|
||||
|
||||
|
|
Loading…
Reference in New Issue