We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fdc8c commit 6f26346Copy full SHA for 6f26346
core/potion.h
@@ -210,8 +210,8 @@ struct PNVtable;
210
/// Integer: 31bit/63bit shifted off the last 1 bit
211
/// or a PNDouble double.
212
///\see PN_NUM (int to obj), PN_INT (obj to int), PN_IS_INT (is num obj?)
213
-#define PN_NUM(i) ((PN)((((long)(i))<<1) + PN_FINTEGER))
214
-#define PN_INT(x) ((long)((long)(x))>>1)
+#define PN_NUM(i) ((PN)((((unsigned long)(i))<<1) + PN_FINTEGER))
+#define PN_INT(x) ((long)((unsigned long)(x))>>1)
215
#define PN_DBL(num) (PN_IS_INT(num) ? (double)PN_INT(num) : ((struct PNDouble *)num)->value)
216
typedef _PN (*PN_F)(Potion *, PN, PN, ...);
217
#define PN_PREC 16
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments