| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -437,7 +437,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, bool setEr | |||
| 437 | 437 | case TypeCode.Int32: | |
| 438 | 438 | #if PYTHON2 // Trickery to support 64-bit platforms. | |
| 439 | 439 | ||
| 440 | - if (Runtime.is32bit) | ||
| 440 | + if (Runtime.Is32Bit) | ||
| 441 | 441 | { | |
| 442 | 442 | op = Runtime.PyNumber_Int(value); | |
| 443 | 443 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -170,14 +170,14 @@ public class Runtime | |||
| 170 | 170 | internal static Object IsFinalizingLock = new Object(); | |
| 171 | 171 | internal static bool IsFinalizing = false; | |
| 172 | 172 | ||
| 173 | - internal static bool is32bit; | ||
| 173 | + internal static bool Is32Bit; | ||
| 174 | 174 | ||
| 175 | 175 | /// <summary> | |
| 176 | 176 | /// Initialize the runtime... | |
| 177 | 177 | /// </summary> | |
| 178 | 178 | internal static void Initialize() | |
| 179 | 179 | { | |
| 180 | - is32bit = IntPtr.Size == 4; | ||
| 180 | + Is32Bit = IntPtr.Size == 4; | ||
| 181 | 181 | ||
| 182 | 182 | if (Runtime.Py_IsInitialized() == 0) | |
| 183 | 183 | { | |
@@ -501,7 +501,7 @@ internal unsafe static void XIncref(IntPtr op) | |||
| 501 | 501 | void* p = (void*)op; | |
| 502 | 502 | if ((void*)0 != p) | |
| 503 | 503 | { | |
| 504 | - if (is32bit) | ||
| 504 | + if (Is32Bit) | ||
| 505 | 505 | { | |
| 506 | 506 | (*(int*)p)++; | |
| 507 | 507 | } | |
@@ -524,7 +524,7 @@ internal static unsafe void XDecref(IntPtr op) | |||
| 524 | 524 | void* p = (void*)op; | |
| 525 | 525 | if ((void*)0 != p) | |
| 526 | 526 | { | |
| 527 | - if (is32bit) | ||
| 527 | + if (Is32Bit) | ||
| 528 | 528 | { | |
| 529 | 529 | --(*(int*)p); | |
| 530 | 530 | } | |
@@ -535,11 +535,11 @@ internal static unsafe void XDecref(IntPtr op) | |||
| 535 | 535 | if ((*(int*)p) == 0) | |
| 536 | 536 | { | |
| 537 | 537 | // PyObject_HEAD: struct _typeobject *ob_type | |
| 538 | - void* t = is32bit | ||
| 538 | + void* t = Is32Bit | ||
| 539 | 539 | ? (void*)(*((uint*)p + 1)) | |
| 540 | 540 | : (void*)(*((ulong*)p + 1)); | |
| 541 | 541 | // PyTypeObject: destructor tp_dealloc | |
| 542 | - void* f = is32bit | ||
| 542 | + void* f = Is32Bit | ||
| 543 | 543 | ? (void*)(*((uint*)t + 6)) | |
| 544 | 544 | : (void*)(*((ulong*)t + 6)); | |
| 545 | 545 | if ((void*)0 == f) | |
@@ -558,7 +558,7 @@ internal unsafe static long Refcount(IntPtr op) | |||
| 558 | 558 | void* p = (void*)op; | |
| 559 | 559 | if ((void*)0 != p) | |
| 560 | 560 | { | |
| 561 | - if (is32bit) | ||
| 561 | + if (Is32Bit) | ||
| 562 | 562 | { | |
| 563 | 563 | return (*(int*)p); | |
| 564 | 564 | } | |
@@ -887,7 +887,7 @@ internal unsafe static IntPtr | |||
| 887 | 887 | #else | |
| 888 | 888 | int n = 1; | |
| 889 | 889 | #endif | |
| 890 | - if (is32bit) | ||
| 890 | + if (Is32Bit) | ||
| 891 | 891 | { | |
| 892 | 892 | return new IntPtr((void*)(*((uint*)p + n))); | |
| 893 | 893 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments