mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Update default field value syntax; Use more declaration groupings
This commit is contained in:
+6
-2
@@ -78,8 +78,7 @@ proc assign(a: ^Decimal, i: u64) {
|
||||
trim(a);
|
||||
}
|
||||
|
||||
const uint_size = 8*size_of(uint);
|
||||
const max_shift = uint_size-4;
|
||||
|
||||
|
||||
proc shift_right(a: ^Decimal, k: uint) {
|
||||
var r = 0; // read index
|
||||
@@ -171,6 +170,11 @@ proc shift_left(a: ^Decimal, k: uint) {
|
||||
}
|
||||
|
||||
proc shift(a: ^Decimal, k: int) {
|
||||
const (
|
||||
uint_size = 8*size_of(uint);
|
||||
max_shift = uint_size-4;
|
||||
)
|
||||
|
||||
match {
|
||||
case a.count == 0:
|
||||
// no need to update
|
||||
|
||||
Reference in New Issue
Block a user