openbsd-ports/java/jlint/patches/patch-types_hh
2022-03-11 19:25:15 +00:00

30 lines
766 B
Plaintext

Index: types.hh
--- types.hh.orig
+++ types.hh
@@ -2,10 +2,10 @@
#define TYPES_HH
#ifdef VISUAL_CPP
-#include <assert.h>
#pragma warning( disable : 4786)
#endif
+#include <cassert>
#include <string>
#include <vector>
#include <stddef.h>
@@ -141,10 +141,10 @@ struct vbm_operand {
int_type_range const ranges[] = {
// min max
{0x00000000, 0x00000001}, // tp_bool
- {0xffffff80, 0x0000007f}, // tp_byte
+ {-0x00000080, 0x0000007f}, // tp_byte
{0x00000000, 0x0000ffff}, // tp_char
- {0xffff8000, 0x00007fff}, // tp_short
- {0x80000000, 0x7fffffff} // tp_int
+ {-0x00008000, 0x00007fff}, // tp_short
+ {static_cast<int>(-0x80000000), 0x7fffffff} // tp_int
};
int const array_type[] = {