We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c0c42 commit c04a49aCopy full SHA for c04a49a
src/codegen/codegen.rs
@@ -326,14 +326,15 @@ impl CodeGen {
326
327
self.expr(*cast_expr.expr, Some(&r.dest(og_size)), state)?;
328
329
+ if casted_size > og_size {
330
+ self.arch.mov(
331
+ &r.source(og_size),
332
+ &r.dest(casted_size),
333
+ type_.signed(),
334
+ )?;
335
+ }
336
+
337
if new {
- if casted_size > og_size {
- self.arch.mov(
- &r.source(og_size),
- &r.dest(casted_size),
- type_.signed(),
- )?;
- }
338
self.arch
339
.mov(&r.source(casted_size), dest, type_.signed())?;
340
self.arch.free(r)?;
0 commit comments