Skip to content

Commit

Permalink
Fix sizeOfIntegralCType:
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Feb 22, 2022
1 parent 8a352ee commit 206a639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions smalltalksrc/Slang/CCodeGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4587,8 +4587,8 @@ CCodeGenerator >> sizeOfIntegralCType: anIntegralCType [ "<String>"
"Standard C types"
['uint64_t'] -> [8].
['uint32_t'] -> [4].
['uint16_t'] -> [4].
['uint8_t'] -> [4].
['uint16_t'] -> [2].
['uint8_t'] -> [1].
}
otherwise:
[((anIntegralCType beginsWith: 'unsigned') "e.g. 'unsigned : 8'"
Expand Down
3 changes: 2 additions & 1 deletion smalltalksrc/VMMaker/ComposedImageReader.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ ComposedImageReader >> readFieldsSTONFrom: file into: aStruct [

[ self
fscanf: file
_: fieldFormat "Y la coma?"
_: fieldFormat
_: (self addressOf: fieldName)
_: (self addressOf: fieldValue)
"check if line ends with ',\n' "
] whileTrue: [
aStruct setField: (self contentsOf: fieldName) to: (self contentsOf: fieldValue).
]
Expand Down

0 comments on commit 206a639

Please sign in to comment.