mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
get nameHash by '='
This commit is contained in:
parent
01e2c533e6
commit
1bf589ad52
@ -131,10 +131,7 @@ uint8_t content_nameOffset(uint8_t* self) {
|
||||
}
|
||||
|
||||
Hash content_getNameHash(uint8_t* self) {
|
||||
uint8_t* nameHashDir = (uint8_t*)self + content_nameOffset(self);
|
||||
Hash nameHash = 0;
|
||||
__platform_memcpy(&nameHash, nameHashDir, sizeof(Hash));
|
||||
return nameHash;
|
||||
return *(Hash*)((uintptr_t)self + (uintptr_t)content_nameOffset(self));
|
||||
}
|
||||
|
||||
uint8_t* content_deinit(uint8_t* self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user