diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-16 15:08:44 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-17 23:19:09 +0200 |
commit | 66b9574b165be62e76c7397cf0eaa8d229d42675 (patch) | |
tree | adb8a9719cc70f2b577706aaa4e30bb0d5d629a6 /src/utils/proptable.nim | |
parent | d86f1939204eee771a30f47e4cbe71fd8d9a4f5f (diff) | |
download | chawan-66b9574b165be62e76c7397cf0eaa8d229d42675.tar.gz |
Update code style
* separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
Diffstat (limited to 'src/utils/proptable.nim')
-rw-r--r-- | src/utils/proptable.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/proptable.nim b/src/utils/proptable.nim index 0087dd80..02a342f5 100644 --- a/src/utils/proptable.nim +++ b/src/utils/proptable.nim @@ -8,7 +8,7 @@ type PropertyTable* = array[0x10000 div (sizeof(ptint) * 8), ptint] RangeMap* = openArray[(uint32, uint32)] -func makePropertyTable*(ranges: RangeMap, skip: RangeMap = @[]): PropertyTable = +func makePropertyTable*(ranges: RangeMap; skip: RangeMap = @[]): PropertyTable = var ucs: uint32 = 0 var j = 0 var k = 0 @@ -30,7 +30,7 @@ func makePropertyTable*(ranges: RangeMap, skip: RangeMap = @[]): PropertyTable = inc ucs {.push boundChecks:off.} -func contains*(props: PropertyTable, u: ptint): bool {.inline.} = +func contains*(props: PropertyTable; u: ptint): bool {.inline.} = const isz = sizeof(ptint) * 8 let i = u div isz let m = u mod isz |