Skip to content

Commit

Permalink
Fix ValueHolder contents translation
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Feb 21, 2022
1 parent 7a0fded commit 8a352ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions smalltalksrc/VMMaker/AbstractComposedImageAccess.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ AbstractComposedImageAccess class >> declareCVarsIn: aCCodeGenerator [

]

{ #category : #'archive operations' }
AbstractComposedImageAccess >> contentsOf: valueHolder [

<cmacro: '(value) value'>

^ valueHolder contents
]

{ #category : #'file operations' }
AbstractComposedImageAccess >> createImageDirectory: imageFileName [

Expand Down
4 changes: 2 additions & 2 deletions smalltalksrc/VMMaker/ComposedImageReader.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ComposedImageReader >> readFieldsSTONFrom: file into: aStruct [
_: (self addressOf: fieldName)
_: (self addressOf: fieldValue)
] whileTrue: [
aStruct setField: fieldName contents to: fieldValue contents.
aStruct setField: (self contentsOf: fieldName) to: (self contentsOf: fieldValue).
]

]
Expand All @@ -38,7 +38,7 @@ ComposedImageReader >> readHeadSTONFrom: file into: aStruct [

self simulationOnly: [
aStruct withStructNameDo: [ :name |
self assert: name = structName contents ] ]
self assert: name = (self contentsOf: structName) ] ]
]

{ #category : #api }
Expand Down

0 comments on commit 8a352ee

Please sign in to comment.