Skip to content

Commit

Permalink
Merge branch 'master' into mv/capacity-tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored Feb 6, 2024
2 parents 769f2ef + e4378ee commit 90d6317
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/ssa/ssa_gen/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ impl<'a> FunctionContext<'a> {
/// Create a const offset of an address for an array load or store
pub(super) fn make_offset(&mut self, mut address: ValueId, offset: u128) -> ValueId {
if offset != 0 {
let offset = self.builder.field_constant(offset);
let offset = self.builder.numeric_constant(offset, self.builder.type_of_value(address));
address = self.builder.insert_binary(address, BinaryOp::Add, offset);
}
address
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
"subshell",
"subtyping",
"swcurve",
"Taiko",
"tecurve",
"tempdir",
"tempfile",
Expand Down
8 changes: 6 additions & 2 deletions tooling/backend_interface/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ pub fn download_backend(backend_url: &str, destination_path: &Path) -> std::io::
use tempfile::tempdir;

// Download sources
let compressed_file: Cursor<Vec<u8>> = download_binary_from_url(backend_url)
.map_err(|_| std::io::Error::from(ErrorKind::Other))?;
let compressed_file: Cursor<Vec<u8>> = download_binary_from_url(backend_url).map_err(|_| {
std::io::Error::new(
ErrorKind::Other,
format!("Could not download backend from install url: {backend_url}"),
)
})?;

// Unpack the tarball
let gz_decoder = GzDecoder::new(compressed_file);
Expand Down

0 comments on commit 90d6317

Please sign in to comment.