Skip to content

Commit 89bac3a

Browse files
committed
deprecate MP_RANGE
1 parent 0b73dab commit 89bac3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tommath.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ typedef enum {
125125
MP_ERR = -1,
126126
MP_MEM = -2,
127127
MP_VAL = -3,
128-
MP_RANGE = MP_VAL,
129128
MP_ITER = -4
130129
} mp_err;
131130
#else
@@ -144,7 +143,7 @@ typedef int mp_err;
144143
#define MP_ERR -1 /* unknown error */
145144
#define MP_MEM -2 /* out of mem */
146145
#define MP_VAL -3 /* invalid input */
147-
#define MP_RANGE MP_VAL
146+
#define MP_RANGE (MP_DEPRECATED_PRAGMA("MP_RANGE has been deprecated in favor of MP_VAL") MP_VAL)
148147
#define MP_ITER -4 /* Max. iterations reached */
149148
#endif
150149

0 commit comments

Comments
 (0)