Skip to content

Commit 0be1e0d

Browse files
committed
m
1 parent b2e0c66 commit 0be1e0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/src/DynamoToStruct.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,12 +652,12 @@ module DynamoToStruct {
652652
//= specification/dynamodb-encryption-client/ddb-attribute-serialization.md#key-value-pair-entries
653653
//# Entries in a serialized Map MUST be ordered by key value,
654654
//# ordered in ascending [UTF-16 binary order](./string-ordering.md#utf-16-binary-order).
655-
var attrNames := SortedSets.ComputeSetToOrderedSequence2(m.Keys, CharLess);
655+
var attrNames : seq<AttributeName> := SortedSets.ComputeSetToOrderedSequence2(m.Keys, CharLess);
656656
SequenceIsSafeBecauseItIsInMemory(attrNames);
657657
var len := |attrNames| as uint64;
658658
var output :- U32ToBigEndian64(len);
659659
for i : uint64 := 0 to len {
660-
var k := attrNames[i];
660+
var k : AttributeName := attrNames[i];
661661
var val := AttrToBytes(m[k], true, depth+1);
662662
if val.Failure? {
663663
var result := Failure(val.error);

DynamoDbEncryption/dafny/DynamoDbEncryption/src/FilterExpr.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ module DynamoDBFilterExpr {
12641264
}
12651265

12661266
// call the function
1267-
method apply_function(input : Token, stack : seq<StackValue>, num_args : nat) returns (ret : Result<StackValue, Error>)
1267+
method apply_function(input : Token, stack : seq<StackValue>, num_args : nat) returns (result : Result<StackValue, Error>)
12681268
{
12691269
match input {
12701270
case Between =>
@@ -1274,7 +1274,7 @@ module DynamoDBFilterExpr {
12741274
var ret :- is_between(stack[|stack|-3].s, stack[|stack|-2].s, stack[|stack|-1].s);
12751275
return Success(Bool(ret));
12761276
} else {
1277-
return Failure(E("Wrong Types for contains"));
1277+
return Failure(E("Wrong Types for Between"));
12781278
}
12791279

12801280
case In =>

0 commit comments

Comments
 (0)