-1
in the size calculation for the ringbuffer allocation of chat history entries was incorrect, so the entries potentially didn't fit the zero terminator. Because mem_copy
was used, the string was also not zero terminated explicitly.
for x [*.jpg] {
gm convert $x (str:trim-suffix $x .jpg).png
}
pub extern fn puts(x: *mut u8) -> i32;
pub fn main() -> i32 {
let x: [u8; 4] = [104, 0, 0, 0];
puts(&x as *mut u8);
return 0;
}
; Function Attrs: nofree nounwind
declare !dbg !2 noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #0
; Function Attrs: nofree nounwind
define noundef i32 @main() local_unnamed_addr #0 !dbg !9 {
entry:
%x = alloca [4 x i8], align 4, !dbg !18
call void @llvm.dbg.declare(metadata ptr %x, metadata !13, metadata !DIExpression()), !dbg !18
tail call void @llvm.dbg.value(metadata [4 x i8] c"h\00\00\00", metadata !13, metadata !DIExpression()), !dbg !18
store <4 x i8> <i8 104, i8 0, i8 0, i8 0>, ptr %x, align 4, !dbg !19
%0 = call i32 @puts(ptr nonnull dereferenceable(1) %x), !dbg !20
ret i32 0, !dbg !21
}
int sum(const BinaryTree *tree) {
match(*tree) {
of(Leaf, x) return *x;
of(Node, lhs, x, rhs) return sum(*lhs) + *x + sum(*rhs);
}
// Invalid input (no such variant).
return -1;
}
int sum(const BinaryTree *tree) {
match(*tree) {
of(Leaf, x) return *x;
of(Node, lhs, x, rhs) return sum(*lhs) + *x + sum(*rhs);
}
// Invalid input (no such variant).
return -1;
}
for x in *.jpg; do gm convert $x $(basename $x .jpg).png;done
does look better to me :pset -u
in the interactive shell seems like a good idea actually. Why have i never thought about that.chat.cpp
and which value corresponds to team 0?chat.cpp
and which value corresponds to team 0? int m_TeamNumber;
initializing the event loop took 0.07s / 67ms
oh wow, my pc got slower creating vk instance took 0.05s / 47ms
(edited)map_create_pixelart
tool, which converts a pixelart (png) into quads and wanted to share issues and missing features:
make --build build --target tools
, there is no download available, neither on the ddnet website (also tested nightly) or here on github. This issue is big, because most people aren't able to compile for themself.
database is locked
CI error with .timeout
. Not sure if it fixes the error, as I have no way of reproducing it. Closes #8325
cpp
uint32_t ImgNumber = VKCapabilities.minImageCount + 1 + rand() % 5;
in GetNumberOfSwapImages
.
For sync objects I decided that they should not be dependent on the frame count directly anyway.
For vulkan cleanup simply take the swapchain count as parameter instead of relying on the cached one (since that is overwritten when recreating the swapchain).
Also minor refactoring.
## ...6864fc1
Include map_create_pixelart
in release - furo321
d5b06a4
Use IO_MAX_PATH_LENGTH
instead of 64
- furo321
39dd6ea
Fix wrong filename used in dbg_msg
- furo321
7cd9d8b
Prevent using map_create_pixelart
with the same input and output path - furo321
3491624
Fix crash when not specifying optimize
, centralize
or invalid amount of arguments - furo321
d34fc96
Merge pull request #8348 from furo321/map_create_pixelart - Robyt3