Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9fa5a282
Kaydet (Commit)
9fa5a282
authored
Eyl 11, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #3642: Suppress warning in obmalloc when size_t is
larger than uint. Reverts r65975. Reviewed by Brett Cannon.
üst
84076d8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
NEWS
Misc/NEWS
+2
-3
obmalloc.c
Objects/obmalloc.c
+3
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
9fa5a282
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 release candidate 1?
Core and Builtins
-----------------
- Issue #3642: Suppress warning in obmalloc when size_t is larger than uint.
- Issue #3743: In a few places, PY_FORMAT_SIZE_T was incorrectly used with
PyString_FromFormat or PyErr_Format to display size_t values. The macro
PY_FORMAT_SIZE_T is designed to select the correct format for the OS
...
...
@@ -52,9 +54,6 @@ Core and Builtins
- Fix problem using wrong name in decimal module reported by pychecker.
- Issue #3642: Changed type of numarenas from uint to size_t
in order to silence a compilier warning on 64bit OSes.
- Silenced another compiler warning about a used but not defined
function 'stringlib_contains_obj'.
...
...
Objects/obmalloc.c
Dosyayı görüntüle @
9fa5a282
...
...
@@ -517,7 +517,7 @@ new_arena(void)
#endif
if
(
unused_arena_objects
==
NULL
)
{
uint
i
;
size_
t
numarenas
;
uin
t
numarenas
;
size_t
nbytes
;
/* Double the number of arena objects on each allocation.
...
...
@@ -526,8 +526,10 @@ new_arena(void)
numarenas
=
maxarenas
?
maxarenas
<<
1
:
INITIAL_ARENA_OBJECTS
;
if
(
numarenas
<=
maxarenas
)
return
NULL
;
/* overflow */
#if SIZEOF_SIZE_T <= SIZEOF_INT
if
(
numarenas
>
PY_SIZE_MAX
/
sizeof
(
*
arenas
))
return
NULL
;
/* overflow */
#endif
nbytes
=
numarenas
*
sizeof
(
*
arenas
);
arenaobj
=
(
struct
arena_object
*
)
realloc
(
arenas
,
nbytes
);
if
(
arenaobj
==
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment