Fix a few things

This commit is contained in:
Elias Batek 2025-01-30 01:26:26 +01:00
parent 442c616bae
commit c9790d0c19
1 changed files with 5 additions and 4 deletions

View File

@ -393,7 +393,7 @@ struct UDecimal {
/// ///
public this(uint initialValue) { public this(uint initialValue) {
_value = (long(initialValue) << 32); _value = (ulong(initialValue) << 32);
} }
private static UDecimal make(ulong internal) { private static UDecimal make(ulong internal) {
@ -3332,10 +3332,11 @@ private void scaleToImpl(ScalingFilter filter)(const Pixmap source, Pixmap targe
if (directions[0] == none) { if (directions[0] == none) {
if (directions[1] == none) { if (directions[1] == none) {
version (none) version (none) {
scaleToLinearImpl!(none, none)(); scaleToLinearImpl!(none, none)();
else } else {
return; target.data[] = source.data[];
}
} else if (directions[1] == up) { } else if (directions[1] == up) {
scaleToLinearImpl!(none, up)(); scaleToLinearImpl!(none, up)();
} else /* if (directions[1] == down) */ { } else /* if (directions[1] == down) */ {