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
b8584e08
Kaydet (Commit)
b8584e08
authored
Ock 05, 2001
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix signed/unsigned wng. Unfortunately, (unsigned char) << int
has type int in C.
üst
1a7aab70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pythonrun.c
Python/pythonrun.c
+2
-2
No files found.
Python/pythonrun.c
Dosyayı görüntüle @
b8584e08
...
@@ -570,8 +570,8 @@ maybe_pyc_file(FILE *fp, char* filename, char* ext, int closeit)
...
@@ -570,8 +570,8 @@ maybe_pyc_file(FILE *fp, char* filename, char* ext, int closeit)
be read as they are on disk. */
be read as they are on disk. */
unsigned
int
halfmagic
=
PyImport_GetMagicNumber
()
&
0xFFFF
;
unsigned
int
halfmagic
=
PyImport_GetMagicNumber
()
&
0xFFFF
;
unsigned
char
buf
[
2
];
unsigned
char
buf
[
2
];
if
(
fread
(
buf
,
1
,
2
,
fp
)
==
2
if
(
fread
(
buf
,
1
,
2
,
fp
)
==
2
&&
(
buf
[
1
]
<<
8
|
buf
[
0
])
==
halfmagic
)
&&
(
(
unsigned
int
)
buf
[
1
]
<<
8
|
buf
[
0
])
==
halfmagic
)
return
1
;
return
1
;
fseek
(
fp
,
0
,
SEEK_SET
);
fseek
(
fp
,
0
,
SEEK_SET
);
}
}
...
...
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